浏览代码

Add also InvalidArgument to whitelist

mscherer 5 年之前
父节点
当前提交
712217c104
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Error/ErrorHandlerTrait.php

+ 2 - 0
src/Error/ErrorHandlerTrait.php

@@ -21,6 +21,7 @@ use Cake\Http\Exception\UnavailableForLegalReasonsException;
 use Cake\Routing\Exception\MissingRouteException;
 use Cake\View\Exception\MissingTemplateException;
 use Cake\View\Exception\MissingViewException;
+use InvalidArgumentException;
 
 /**
  * @property array $_options
@@ -35,6 +36,7 @@ trait ErrorHandlerTrait {
 	 */
 	protected static $blacklist = [
 		InvalidPrimaryKeyException::class,
+		InvalidArgumentException::class,
 		NotFoundException::class,
 		MethodNotAllowedException::class,
 		NotAcceptableException::class,