mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Type safety on nullable argument, fixes PHP 7.4 test
This commit is contained in:
parent
2a1394bed7
commit
79fa61edf8
@ -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'] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user