diff --git a/composer.json b/composer.json index 949b987..a4107cf 100644 --- a/composer.json +++ b/composer.json @@ -34,10 +34,10 @@ }, "require-dev": { "mediawiki/mediawiki-codesniffer": "37.0.0", - "mediawiki/mediawiki-phan-config": "0.10.6", + "mediawiki/mediawiki-phan-config": "0.11.0", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "0.5.0", - "php-parallel-lint/php-parallel-lint": "1.3.0" + "php-parallel-lint/php-parallel-lint": "1.3.1" }, "scripts": { "fix": [ @@ -46,9 +46,10 @@ ], "test": [ "parallel-lint . --exclude node_modules --exclude vendor", - "phpcs -p -s", + "@phpcs", "minus-x check ." ], - "phan": "phan -d . --long-progress-bar" + "phan": "phan -d . --long-progress-bar", + "phpcs": "phpcs -sp --cache" } } diff --git a/includes/Constants.php b/includes/Constants.php index 60b8383..041ae2b 100644 --- a/includes/Constants.php +++ b/includes/Constants.php @@ -226,6 +226,7 @@ final class Constants { /** * This class is for namespacing constants only. Forbid construction. * @throws FatalError + * @return never */ private function __construct() { throw new FatalError( "Cannot construct a utility class." );