Skip to content

Commit 45474d5

Browse files
xabbuhnicolas-grekas
authored andcommitted
support lazy evaluated exception messages with Xdebug 3
1 parent f6557cc commit 45474d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Exception/AutowiringFailedException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public function __construct(string $serviceId, $message = '', int $code = 0, ?\T
2323
{
2424
$this->serviceId = $serviceId;
2525

26-
if ($message instanceof \Closure
27-
&& (\function_exists('xdebug_is_enabled') ? xdebug_is_enabled() : \function_exists('xdebug_info'))
28-
) {
26+
if ($message instanceof \Closure && \function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {
2927
$message = $message();
3028
}
3129

0 commit comments

Comments
 (0)