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 Mar 31, 2024
1 parent 3ca8969 commit b4998f9
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 @@ -66,7 +66,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 b4998f9

Please sign in to comment.