mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fixed argument display in errorHandler
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user