Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 854f5d1

Browse files
bug #33033 [Lock] consistently throw NotSupportException (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [Lock] consistently throw NotSupportException | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 12b8c94 consistently throw NotSupportException
2 parents 48859fd + 12b8c94 commit 854f5d1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function save(Key $key)
9494

9595
public function waitAndSave(Key $key)
9696
{
97-
throw new NotSupportedException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
97+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
9898
}
9999

100100
/**

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

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

1414
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1515
use Symfony\Component\Lock\Exception\LockConflictedException;
16+
use Symfony\Component\Lock\Exception\NotSupportedException;
1617
use Symfony\Component\Lock\Key;
1718
use Symfony\Component\Lock\StoreInterface;
1819

@@ -70,7 +71,7 @@ public function save(Key $key)
7071

7172
public function waitAndSave(Key $key)
7273
{
73-
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
74+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
7475
}
7576

7677
/**

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Cache\Traits\RedisProxy;
1515
use Symfony\Component\Lock\Exception\InvalidArgumentException;
1616
use Symfony\Component\Lock\Exception\LockConflictedException;
17+
use Symfony\Component\Lock\Exception\NotSupportedException;
1718
use Symfony\Component\Lock\Key;
1819
use Symfony\Component\Lock\StoreInterface;
1920

@@ -72,7 +73,7 @@ public function save(Key $key)
7273

7374
public function waitAndSave(Key $key)
7475
{
75-
throw new InvalidArgumentException(sprintf('The store "%s" does not supports blocking locks.', \get_class($this)));
76+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
7677
}
7778

7879
/**

0 commit comments

Comments
 (0)