Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / filebackend / lockmanager / ScopedLock.php
index 2056e10..e1a600c 100644 (file)
@@ -69,7 +69,7 @@ class ScopedLock {
        public static function factory(
                LockManager $manager, array $paths, $type, Status $status, $timeout = 0
        ) {
-               $pathsByType = is_integer( $type ) ? array( $type => $paths ) : $paths;
+               $pathsByType = is_integer( $type ) ? [ $type => $paths ] : $paths;
                $lockStatus = $manager->lockByType( $pathsByType, $timeout );
                $status->merge( $lockStatus );
                if ( $lockStatus->isOK() ) {