Skip to content

Commit 18f9726

Browse files
authored
Adjust pretty name of closures on PHP 8.4
related to php/php-src#13550 see analog symfony change: symfony/symfony#54614
1 parent c93bcb2 commit 18f9726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(ReflectionFunctionAbstract $reflection, string $para
3434

3535
if ($class === null) {
3636
$method = $function;
37-
if (substr($method, -9) === '{closure}') {
37+
if (strpos($method, '{closure') !== false) {
3838
$method = $this->renderClosureSignature($reflection);
3939
}
4040
} else {

0 commit comments

Comments
 (0)