mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Add type hint
This commit is contained in:
parent
835ea7c767
commit
2e7b1041bd
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class ValidationException extends AppException{
|
||||||
|
|
||||||
public function Add(\Exception $exception, bool $isFatal = false): void{
|
public function Add(\Exception $exception, bool $isFatal = false): void{
|
||||||
if(is_a($exception, static::class)){
|
if(is_a($exception, static::class)){
|
||||||
|
// Type hint for linter
|
||||||
|
/** @var ValidationException $exception */
|
||||||
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