build: Updating mediawiki/mediawiki-codesniffer to 29.0.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ibf8a07b82fd03c38f1a07eef445c751c8a7a273b
This commit is contained in:
libraryupgrader 2020-01-14 05:57:35 +00:00
parent bebe23cf97
commit 4fb2612a0c
2 changed files with 4 additions and 4 deletions

View file

@ -16,14 +16,14 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"mediawiki/mediawiki-codesniffer": "29.0.0",
"mediawiki/minus-x": "0.3.2",
"mediawiki/mediawiki-phan-config": "0.9.0"
},
"scripts": {
"fix": [
"phpcbf",
"minus-x fix ."
"minus-x fix .",
"phpcbf"
],
"test": [
"parallel-lint . --exclude vendor --exclude node_modules",

View file

@ -161,7 +161,7 @@ class ImageMap {
$alt = trim( $m[2] );
} elseif ( preg_match( '/^ \[\[ ([^\]]*+) \]\] \w* $ /x', $link, $m ) ) {
$title = Title::newFromText( $m[1] );
if ( is_null( $title ) ) {
if ( $title === null ) {
return self::error( 'imagemap_invalid_title', $lineNum );
}
$alt = $title->getFullText();