mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 14:20:29 -04:00
Fix broken check in ValidationException
This commit is contained in:
parent
4574b55cac
commit
fa323842f6
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class ValidationException extends AppException{
|
||||||
|
|
||||||
public function Add(\Exception $exception, bool $isFatal = false): void{
|
public function Add(\Exception $exception, bool $isFatal = false): void{
|
||||||
/** @var ValidationException $exception */
|
/** @var ValidationException $exception */
|
||||||
if($exception instanceof static){
|
if(is_a($exception, ValidationException::class)){
|
||||||
foreach($exception->Exceptions as $childException){
|
foreach($exception->Exceptions as $childException){
|
||||||
$this->Add($childException);
|
$this->Add($childException);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue