X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Flockmanager%2FScopedLock.php;h=6261335ea37d28e7d9c83f4970ff8799c1b46920;hp=2ad8ac87b52b576569e9b7e3cb222f006ab84120;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=20b0288ac360d791bd2af16586f91f62711c8a37 diff --git a/includes/libs/lockmanager/ScopedLock.php b/includes/libs/lockmanager/ScopedLock.php index 2ad8ac87b5..6261335ea3 100644 --- a/includes/libs/lockmanager/ScopedLock.php +++ b/includes/libs/lockmanager/ScopedLock.php @@ -70,7 +70,7 @@ class ScopedLock { public static function factory( LockManager $manager, array $paths, $type, StatusValue $status, $timeout = 0 ) { - $pathsByType = is_integer( $type ) ? [ $type => $paths ] : $paths; + $pathsByType = is_int( $type ) ? [ $type => $paths ] : $paths; $lockStatus = $manager->lockByType( $pathsByType, $timeout ); $status->merge( $lockStatus ); if ( $lockStatus->isOK() ) {