FILE: ...\CirrusSearch\includes\SearchConfig.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 1 | ERROR | An error occurred during processing; checking has been | | aborted. The error message was: substr_compare(): The start | | position cannot exceed initial string length in | | \CirrusSearch\vendor\mediawiki\mediawiki-codesniffer\MediaWiki\Sniffs\Commenting\FunctionCommentSniff.php | | on line 533 (Internal.Exception) ----------------------------------------------------------------------
Caused by https://gerrit.wikimedia.org/r/#/c/403940/3/MediaWiki/Sniffs/Commenting/FunctionCommentSniff.php
Code to sniff is possible:
/** * Get chain of elements from config array * @param string $configName * @param string ... list of path elements * @return mixed Returns value or null if not present */
Maybe just switch to a substr() ===