Tweak type hints in ValidationException

This commit is contained in:
Alex Cabal 2024-04-22 20:18:43 -05:00
parent 8930d9b906
commit 225b01f3dd

View file

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