8000 Remove old version check · symfony/symfony@bf1b1a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit bf1b1a3

Browse files
committed
Remove old version check
1 parent f41bdf1 commit bf1b1a3

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

src/Symfony/Component/Console/Command/LockableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function lock($name = null, $blocking = false)
4343
throw new LogicException('A lock is already in place.');
4444
}
4545

46-
if (SemaphoreStore::isSupported($blocking)) {
46+
if (SemaphoreStore::isSupported()) {
4747
$store = new SemaphoreStore();
4848
} else {
4949
$store = new FlockStore(sys_get_temp_dir());

src/Symfony/Component/Lock/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
4.0.0
5+
-----
6+
7+
* removed the `$blocking` argument of the `SemaphoreStore::isSupported()` method
8+
49
3.4.0
510
-----
611

src/Symfony/Component/Lock/Store/SemaphoreStore.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,11 @@ class SemaphoreStore implements StoreInterface
2727
/**
2828
* Returns whether or not the store is supported.
2929
*
30-
* @param bool|null $blocking When not null, checked again the blocking mode.
31-
*
3230
* @return bool
3331
*/
34-
public static function isSupported($blocking = null)
32+
public static function isSupported()
3533
{
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;
34+
return extension_loaded('sysvsem');
4535
}
4636

4737
public function __construct()

0 commit comments

Comments
 (0)
0