Skip to content

Commit e8b4424

Browse files
minor #43299 Fix "can not" spelling (mvorisek)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Fix "can not" spelling | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 28a438eed4 Fix "can not" spelling
2 parents f2a9080 + 490d696 commit e8b4424

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Key.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function isExpired(): bool
9595
public function __sleep(): array
9696
{
9797
if (!$this->serializable) {
98-
throw new UnserializableKeyException('The key can not be serialized.');
98+
throw new UnserializableKeyException('The key cannot be serialized.');
9999
}
100100

101101
return ['resource', 'expiringTime', 'state'];

LockInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface LockInterface
2929
* @return bool
3030
*
3131
* @throws LockConflictedException If the lock is acquired by someone else in blocking mode
32-
* @throws LockAcquiringException If the lock can not be acquired
32+
* @throws LockAcquiringException If the lock cannot be acquired
3333
*/
3434
public function acquire(bool $blocking = false);
3535

@@ -39,7 +39,7 @@ public function acquire(bool $blocking = false);
3939
* @param float|null $ttl Maximum expected lock duration in seconds
4040
*
4141
* @throws LockConflictedException If the lock is acquired by someone else
42-
* @throws LockAcquiringException If the lock can not be refreshed
42+
* @throws LockAcquiringException If the lock cannot be refreshed
4343
*/
4444
public function refresh(float $ttl = null);
4545

@@ -53,7 +53,7 @@ public function isAcquired();
5353
/**
5454
* Release the lock.
5555
*
56-
* @throws LockReleasingException If the lock can not be released
56+
* @throws LockReleasingException If the lock cannot be released
5757
*/
5858
public function release();
5959

SharedLockInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface SharedLockInterface extends LockInterface
2828
* @return bool
2929
*
3030
* @throws LockConflictedException If the lock is acquired by someone else in blocking mode
31-
* @throws LockAcquiringException If the lock can not be acquired
31+
* @throws LockAcquiringException If the lock cannot be acquired
3232
*/
3333
public function acquireRead(bool $blocking = false);
3434
}

0 commit comments

Comments
 (0)