FIX Type safety on nullable argument, fixes PHP 7.4 test

This commit is contained in:
Robbie Averill 2019-07-19 11:30:17 +02:00
parent 2a1394bed7
commit 79fa61edf8
1 changed files with 2 additions and 3 deletions

View File

@ -126,13 +126,12 @@ class Deprecation
if (!$level) {
$level = 1;
}
$called = $backtrace[$level];
$called = $backtrace ? $backtrace[$level] : [];
if (isset($called['class'])) {
return $called['class'] . $called['type'] . $called['function'];
} else {
return $called['function'];
}
return $called['function'] ?? '';
}
/**