From f2027c1cddd2bceb35d4cbbc6543e0e40b3203f8 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 10 Apr 2013 23:36:44 -0400 Subject: [PATCH] Fixed errorexception trace type. --- framework/base/ErrorException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/base/ErrorException.php b/framework/base/ErrorException.php index 740eea0..93390e7 100644 --- a/framework/base/ErrorException.php +++ b/framework/base/ErrorException.php @@ -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