[DI] Fix Xdebug 3.0 detection
This commit is contained in:
parent
458ee9aa2a
commit
38f8edddb1
|
@ -23,7 +23,10 @@ class AutowiringFailedException extends RuntimeException
|
|||
{
|
||||
$this->serviceId = $serviceId;
|
||||
|
||||
if ($message instanceof \Closure && \function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {
|
||||
if (
|
||||
$message instanceof \Closure
|
||||
&& (\function_exists('xdebug_is_enabled') ? xdebug_is_enabled() : \function_exists('xdebug_info'))
|
||||
) {
|
||||
$message = $message();
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue