fixed argument display in errorHandler

This commit is contained in:
Carsten Brandt
2014-05-25 20:30:26 +02:00
parent d3cb54bcf2
commit ee2b968b7f
2 changed files with 3 additions and 4 deletions

View File

@ -156,11 +156,10 @@ class ErrorHandler extends \yii\base\ErrorHandler
*/
public function addTypeLinks($code)
{
if (preg_match('/(.*?)::([^(]+)\((.*)\)/', $code, $matches)) {
if (preg_match('/(.*?)::([^(]+)/', $code, $matches)) {
$class = $matches[1];
$method = $matches[2];
$args = $matches[3];
$text = $this->htmlEncode($class) . '::' . $this->htmlEncode($method) . '(' . $args . ')';
$text = $this->htmlEncode($class) . '::' . $this->htmlEncode($method);
} else {
$class = $code;
$text = $this->htmlEncode($class);