jokkedk/ZFDebug

typo in ZFDebug_Controller_Plugin_Debug_Plugin_Exception

Closed this issue · 1 comments

Line 146ff:

OLD:
self::$errors[] = array(
'type' => $type ,
'message' => $message ,
'file' => $file ,
'line' => $line,
'trace' => debug_backtrace()
);

NEW (removing the brackes []):
self::$errors = array(
'type' => $type ,
'message' => $message ,
'file' => $file ,
'line' => $line,
'trace' => debug_backtrace()
);

Before the plugin threw an exception in case you have an exception in one of your plugins. :-)

I can't replicate this in master. The static variable $errors is unused though, so either it should have a getter or be removed.