Skip to content

Commit

Permalink
Update ArraySimple::extractKeys method
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Aug 30, 2024
1 parent bd4fc19 commit 3f03648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArraySimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ArraySimple
protected static function extractKeys(string $simpleKey) : array
{
\preg_match_all('#\[(.*?)\]#', $simpleKey, $matches);
return $matches[1] ?? [];
return $matches[1];
}

/**
Expand Down

0 comments on commit 3f03648

Please sign in to comment.