mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-27 15:40:03 +00:00
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:
parent
bebe23cf97
commit
4fb2612a0c
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue