Skip to content

Commit c8fe2c2

Browse files
committed
Fix CS
1 parent 340d604 commit c8fe2c2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Store/CombinedStore.php

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

9494
public function waitAndSave(Key $key)
9595
{
96-
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
96+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
9797
}
9898

9999
/**

Store/MemcachedStore.php

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

7171
public function waitAndSave(Key $key)
7272
{
73-
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
73+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
7474
}
7575

7676
/**

Store/RedisStore.php

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

7474
public function waitAndSave(Key $key)
7575
{
76-
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', \get_class($this)));
76+
throw new NotSupportedException(sprintf('The store "%s" does not support blocking locks.', static::class));
7777
}
7878

7979
/**

Store/SemaphoreStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function lock(Key $key, $blocking)
8181
if (\PHP_VERSION_ID >= 50601) {
8282
$acquired = @sem_acquire($resource, !$blocking);
8383
} elseif (!$blocking) {
84-
throw new NotSupportedException(sprintf('The store "%s" does not supports non blocking locks.', \get_class($this)));
84+
throw new NotSupportedException(sprintf('The store "%s" does not supports non blocking locks.', static::class));
8585
} else {
8686
$acquired = @sem_acquire($resource);
8787
}

0 commit comments

Comments
 (0)