10000 [DI] Fix Xdebug 3.0 detection · symfony/symfony@38f8edd · GitHub
[go: up one dir, main page]

Skip to content

Commit 38f8edd

Browse files
vertexvaarnicolas-grekas
authored andcommitted
[DI] Fix Xdebug 3.0 detection
1 parent 458ee9a commit 38f8edd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/DependencyInjection/Exception/AutowiringFailedException.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ public function __construct(string $serviceId, $message = '', int $code = 0, \Th
2323
{
2424
$this->serviceId = $serviceId;
2525

26-
if ($message instanceof \Closure && \function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {
26+
if (
27+
$message instanceof \Closure
28+
&& (\function_exists('xdebug_is_enabled') ? xdebug_is_enabled() : \function_exists('xdebug_info'))
29+
) {
2730
$message = $message();
2831
}
2932

0 commit comments

Comments
 (0)
0