diff --git a/ContributionScores_body.php b/ContributionScores_body.php index 97d6fb2..6142c1f 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -213,7 +213,7 @@ class ContributionScores extends IncludableSpecialPage { if ( empty( $limit ) || $limit < 1 || $limit > CONTRIBUTIONSCORES_MAXINCLUDELIMIT ) { $limit = 10; } - if ( is_null( $days ) || $days < 0 ) { + if ( $days === null || $days < 0 ) { $days = 7; } diff --git a/composer.json b/composer.json index ac7b9da..2d756c2 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "28.0.0", + "mediawiki/mediawiki-codesniffer": "29.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.2" }, "scripts": { "fix": [ - "phpcbf", - "minus-x fix ." + "minus-x fix .", + "phpcbf" ], "test": [ "parallel-lint . --exclude vendor --exclude node_modules",