Skip to content

Commit 2acef5c

Browse files
committed
Use Stringable whenever possible
1 parent 5d9fc56 commit 2acef5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authorization/TraceableAccessDecisionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getStrategy(): string
8585
if (null === $this->strategy) {
8686
return '-';
8787
}
88-
if (method_exists($this->strategy, '__toString')) {
88+
if ($this->strategy instanceof \Stringable) {
8989
return (string) $this->strategy;
9090
}
9191

0 commit comments

Comments
 (0)