mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Tweak type hints in ValidationException
This commit is contained in:
parent
8930d9b906
commit
225b01f3dd
1 changed files with 1 additions and 1 deletions
|
@ -20,8 +20,8 @@ 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 */
|
||||||
if(is_a($exception, static::class)){
|
if(is_a($exception, static::class)){
|
||||||
// Type hint for linter
|
|
||||||
/** @var ValidationException $childException */
|
/** @var ValidationException $childException */
|
||||||
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