Skip to content

Commit 3284aaf

Browse files
Merge branch '6.4' into 7.1
* 6.4: fix detecting anonymous exception classes on Windows and PHP 7 skip tests requiring the intl extension if it's not installed [RateLimiter] Fix DateInterval normalization [Security] Store original token in token storage when implicitly exiting impersonation [Cache] Fix clear() when using Predis
2 parents bb5192a + 897c244 commit 3284aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ protected function doRenderThrowable(\Throwable $e, OutputInterface $output): vo
840840
}
841841

842842
if (str_contains($message, "@anonymous\0")) {
843-
$message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', fn ($m) => class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0], $message);
843+
$message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)?[0-9a-fA-F]++/', fn ($m) => class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0], $message);
844844
}
845845

846846
$width = $this->terminal->getWidth() ? $this->terminal->getWidth() - 1 : \PHP_INT_MAX;

0 commit comments

Comments
 (0)