Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update KeyTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 6, 2017
1 parent f710d8d commit 4436d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/Helpers/Arr/KeyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function keyExists(array $storage, $key)
*/
public function keys($offset)
{
$offset = preg_replace('~\["?\'?(.*?)\"?\'?]~', '.$1', $offset);
$offset = preg_replace('~\[(?<s>[\'"]?)(.*?)(\k<s>)\]~u', '.$2', $offset);

return explode('.', $offset);
}
Expand Down

0 comments on commit 4436d2c

Please sign in to comment.