Browse Source

预警系统增加关键字

kevin_zhangl 2 years ago
parent
commit
e7d12e9078
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/yiisoft/yii2/web/ErrorHandler.php

+ 1 - 1
vendor/yiisoft/yii2/web/ErrorHandler.php

@@ -151,7 +151,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
             $exception = new HttpException(500, Yii::t('yii', 'An internal server error occurred.'));
         }
 
-        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index', 'SQLSTATE', 'Trying to access array offset on value of type null'];
+        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index', 'SQLSTATE', 'Trying to access array offset on value of type null', 'unknown property'];
         foreach ($errorOutline as $item) {
             if (false !== strpos($exception->getMessage(), $item)) {
                 $it = [