Skip to content

Commit

Permalink
ImmediatelyCalledCallableThrowTypeExtension: ignore implicit throw po…
Browse files Browse the repository at this point in the history
…ints (#163)
  • Loading branch information
JanTvrdik authored Sep 26, 2023
1 parent a47f65f commit a566cfd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Extension/ImmediatelyCalledCallableThrowTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ static function (): void {
);

foreach ($result->getThrowPoints() as $throwPoint) {
$throwTypes[] = $throwPoint->getType();
if ($throwPoint->isExplicit()) {
$throwTypes[] = $throwPoint->getType();
}
}
}

Expand All @@ -161,7 +163,9 @@ static function (): void {
);

foreach ($result->getThrowPoints() as $throwPoint) {
$throwTypes[] = $throwPoint->getType();
if ($throwPoint->isExplicit()) {
$throwTypes[] = $throwPoint->getType();
}
}
}

Expand Down

0 comments on commit a566cfd

Please sign in to comment.