Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  Fix displaying anonymous classes on PHP >= 7.4.2
  • Loading branch information
chalasr committed Jan 25, 2020
2 parents 345ab6e + f512001 commit 91c2941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Application.php
Expand Up @@ -784,7 +784,7 @@ protected function doRenderThrowable(\Throwable $e, OutputInterface $output): vo
}

if (false !== strpos($message, "class@anonymous\0")) {
$message = preg_replace_callback('/class@anonymous\x00.*?\.php(?:0x?|:)[0-9a-fA-F]++/', function ($m) {
$message = preg_replace_callback('/class@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) {
return class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
}, $message);
}
Expand Down

0 comments on commit 91c2941

Please sign in to comment.