Skip to content

Commit fe6499d

Browse files
committed
Leverage str_starts_with(), str_ends_with() and str_contains()
1 parent 3c0c460 commit fe6499d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Store/RedisStore.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private function getNowCode(): string
306306
try {
307307
$this->supportTime = 1 === $this->evaluate($script, 'symfony_check_support_time', []);
308308
} catch (LockStorageException $e) {
309-
if (false === strpos($e->getMessage(), 'commands not allowed after non deterministic')) {
309+
if (!str_contains($e->getMessage(), 'commands not allowed after non deterministic')) {
310310
throw $e;
311311
}
312312
$this->supportTime = false;

0 commit comments

Comments
 (0)