Add type hint

This commit is contained in:
Alex Cabal 2024-03-20 13:08:38 -05:00
parent 835ea7c767
commit 2e7b1041bd

View file

@ -21,6 +21,8 @@ class ValidationException extends AppException{
public function Add(\Exception $exception, bool $isFatal = false): void{
if(is_a($exception, static::class)){
// Type hint for linter
/** @var ValidationException $exception */
foreach($exception->Exceptions as $childException){
$this->Add($childException);
}