Skip to content

Commit 609b148

Browse files
committed
Remove old version check
1 parent 26c3a9b commit 609b148

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Store/SemaphoreStore.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1515
use Symfony\Component\Lock\Exception\LockConflictedException;
16-
use Symfony\Component\Lock\Exception\NotSupportedException;
1716
use Symfony\Component\Lock\Key;
1817
use Symfony\Component\Lock\StoreInterface;
1918

@@ -27,21 +26,11 @@ class SemaphoreStore implements StoreInterface
2726
/**
2827
* Returns whether or not the store is supported.
2928
*
30-
* @param bool|null $blocking When not null, checked again the blocking mode.
31-
*
3229
* @return bool
3330
*/
34-
public static function isSupported($blocking = null)
31+
public static function isSupported()
3532
{
36-
if (!extension_loaded('sysvsem')) {
37-
return false;
38-
}
39-
40-
if ($blocking === false && \PHP_VERSION_ID < 50601) {
41-
return false;
42-
}
43-
44-
return true;
33+
return extension_loaded('sysvsem');
4534
}
4635

4736
public function __construct()

0 commit comments

Comments
 (0)