File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \Lock \Exception \InvalidArgumentException ;
15
15
use Symfony \Component \Lock \Exception \LockConflictedException ;
16
- use Symfony \Component \Lock \Exception \NotSupportedException ;
17
16
use Symfony \Component \Lock \Key ;
18
17
use Symfony \Component \Lock \StoreInterface ;
19
18
@@ -27,21 +26,11 @@ class SemaphoreStore implements StoreInterface
27
26
/**
28
27
* Returns whether or not the store is supported.
29
28
*
30
- * @param bool|null $blocking When not null, checked again the blocking mode.
31
- *
32
29
* @return bool
33
30
*/
34
- public static function isSupported ($ blocking = null )
31
+ public static function isSupported ()
35
32
{
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 ' );
45
34
}
46
35
47
36
public function __construct ()
You can’t perform that action at this time.
0 commit comments