mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixed errorexception trace type.
This commit is contained in:
@ -44,8 +44,10 @@ class ErrorException extends Exception
|
||||
}
|
||||
|
||||
// XDebug < 2.1.1: http://bugs.xdebug.org/view.php?id=695
|
||||
if (!isset($frame['type'])) {
|
||||
if (!isset($frame['type']) || $frame['type'] === 'static') {
|
||||
$frame['type'] = '::';
|
||||
} elseif ($frame['type'] === 'dynamic') {
|
||||
$frame['type'] = '->';
|
||||
}
|
||||
|
||||
// XDebug has a different key name
|
||||
|
Reference in New Issue
Block a user