ソースを参照

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,