Skip to content

Commit

Permalink
fix stan "Dead catch - Exception is never thrown in the try block"
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 16, 2023
1 parent 6b88478 commit 7cd9e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DiContainerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function setDefaults(array $properties, bool $passively = false)
if ($origValue !== null) {
$isMissing = false;
}
} catch (\Exception $e) {
} catch (\Exception $e) { // @phpstan-ignore-line
}

if ($isMissing) {
Expand Down

0 comments on commit 7cd9e76

Please sign in to comment.