Skip to content

Commit 77d7dc9

Browse files
committed
Leverage str_starts_with(), str_ends_with() and str_contains()
1 parent 7ae7dda commit 77d7dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authorization/Voter/Voter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function vote(TokenInterface $token, mixed $subject, array $attributes):
3535
continue;
3636
}
3737
} catch (\TypeError $e) {
38-
if (false !== strpos($e->getMessage(), 'supports(): Argument #1')) {
38+
if (str_contains($e->getMessage(), 'supports(): Argument #1')) {
3939
continue;
4040
}
4141

0 commit comments

Comments
 (0)