We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411190c commit fa8e654Copy full SHA for fa8e654
Command/DebugFirewallCommand.php
@@ -252,7 +252,7 @@ private function formatCallable($callable): string
252
253
if ($callable instanceof \Closure) {
254
$r = new \ReflectionFunction($callable);
255
- if (false !== strpos($r->name, '{closure}')) {
+ if (str_contains($r->name, '{closure')) {
256
return 'Closure()';
257
}
258
if ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
0 commit comments