Skip to content

Commit

Permalink
stricter inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Apr 6, 2024
1 parent c746dbd commit ceafe20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:
level: 6
level: 8
paths:
- src
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function get(string $name)

ksort($activations, SORT_NUMERIC); // order by activation depth

$activations = array_slice($activations, array_search($name, $activations, true));
$activations = array_slice($activations, array_search($name, $activations, true) ?: 0);

$activations[] = $name;

Expand Down

0 comments on commit ceafe20

Please sign in to comment.