Open
Description
I'm using lodash-php ("lodash-php/lodash-php": "^0.09.0") in a laravel 10 project.
When i using the get method, an error is thrown if any of the keys in the given $path contain dots.
Example:
$myArray = [
'abc.com' => [
'foo.net' => [
'bar' => 'baz'
]
]
];
$myPath = ['abc.com', 'foo.net', 'bar'];
\_\get($myArray, $myPath);
// TypeError Symfony\Component\PropertyAccess\PropertyAccessor::getValue(): Argument #1 ($objectOrArray) must be of type object|array, null given, called in vendor\lodash-php\lodash-php\src\Util\property.php on line 66.
Metadata
Metadata
Assignees
Labels
No labels