Skip to content

Commit

Permalink
fix options key
Browse files Browse the repository at this point in the history
  • Loading branch information
ericges committed Mar 25, 2024
1 parent 5c6170a commit d4d84b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StaticUtil/StaticArrayUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function insertAfterKey(array &$array, string $key, mixed $value,
$keys = array_keys($array);
$index = array_search($key, $keys, $options['strict']);

if (false === $index && false === $options['attachIfKeyNotExist']) {
if (false === $index && false === $options['attachMissingKey']) {
return;
}
$pos = false === $index ? \count($array) : $index + 1;
Expand Down

0 comments on commit d4d84b6

Please sign in to comment.