diff --git a/composer.json b/composer.json index 414e757..4166e8d 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "mediawiki/mediawiki-codesniffer": "28.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.2", - "mediawiki/mediawiki-phan-config": "0.8.0" + "mediawiki/mediawiki-phan-config": "0.9.0" }, "scripts": { "fix": [ diff --git a/includes/LoginNotify.php b/includes/LoginNotify.php index 1c2ccea..e4e19ce 100644 --- a/includes/LoginNotify.php +++ b/includes/LoginNotify.php @@ -593,7 +593,7 @@ class LoginNotify implements LoggerAwareInterface { ); return false; } - if ( (int)$parts[0] < gmdate( 'Y' ) - 3 ) { + if ( (int)$parts[0] < (int)gmdate( 'Y' ) - 3 ) { // Record is too old. If user hasn't logged in from this // computer in two years, should probably not consider it trusted. return false;