Skip to content

Commit f7d88a1

Browse files
committed
Favor LogicException for missing classes & functions
1 parent c61a63d commit f7d88a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Command/LockableTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Console\Command;
1313

1414
use Symfony\Component\Console\Exception\LogicException;
15-
use Symfony\Component\Console\Exception\RuntimeException;
1615
use Symfony\Component\Lock\Factory;
1716
use Symfony\Component\Lock\Lock;
1817
use Symfony\Component\Lock\Store\FlockStore;
@@ -36,7 +35,7 @@ trait LockableTrait
3635
private function lock($name = null, $blocking = false)
3736
{
3837
if (!class_exists(SemaphoreStore::class)) {
39-
throw new RuntimeException('To enable the locking feature you must install the symfony/lock component.');
38+
throw new LogicException('To enable the locking feature you must install the symfony/lock component.');
4039
}
4140

4241
if (null !== $this->lock) {

0 commit comments

Comments
 (0)