Преглед изворни кода

全局错误提醒更新关键字

kevin_zhangl пре 3 година
родитељ
комит
fb94bd63a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      vendor/yiisoft/yii2/web/ErrorHandler.php

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

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