diff --git a/composer.json b/composer.json index 7f6de7b..7bc344d 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "", "license": "GPL-3.0-or-later", "require-dev": { - "mediawiki/mediawiki-codesniffer": "41.0.0", + "mediawiki/mediawiki-codesniffer": "45.0.0", "mediawiki/mediawiki-phan-config": "0.12.1", "mediawiki/minus-x": "1.1.3", "php-parallel-lint/php-console-highlighter": "1.0.0", @@ -21,5 +21,10 @@ ], "phan": "phan -d . --long-progress-bar", "phpcs": "phpcs -sp --cache" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } } diff --git a/includes/services/Helpers/InfoboxParamsValidator.php b/includes/services/Helpers/InfoboxParamsValidator.php index 31a9ae1..4033ac9 100644 --- a/includes/services/Helpers/InfoboxParamsValidator.php +++ b/includes/services/Helpers/InfoboxParamsValidator.php @@ -221,9 +221,9 @@ class InfoboxParamsValidator { } if ( isset( self::$colorNamesFlipped[$color] ) || - preg_match( self::REGEX_RGB, $color ) || + preg_match( self::REGEX_RGB, $color ) || preg_match( self::REGEX_RGBA, $color ) || - preg_match( self::REGEX_HSL, $color ) || + preg_match( self::REGEX_HSL, $color ) || preg_match( self::REGEX_HSLA, $color ) ) { return $color;