Merge "block: Avoid use of is_null() PHP function where necessary"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 11 Jan 2019 16:50:46 +0000 (16:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 11 Jan 2019 16:50:46 +0000 (16:50 +0000)
includes/block/BlockRestriction.php

index 5fe9650..3baa063 100644 (file)
@@ -38,7 +38,7 @@ class BlockRestriction {
         * @return Restriction[]
         */
        public static function loadByBlockId( $blockId, IDatabase $db = null ) {
-               if ( is_null( $blockId ) || $blockId === [] ) {
+               if ( $blockId === null || $blockId === [] ) {
                        return [];
                }