-
-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
Description
What happened?
I have noticed that array_dot_get() calls repeat a lot of recursions internally to get results, and makes a few unclear calls.
I.e.:
- there is
foreach (\array_keys($arraySlice) as $key) {while in the loop we use value extraction anyway by calls to$arraySlice[$key], - there is a check for empty steps inside the above
foreach, - later there is a call to
array_dot_exists($arraySlice[$key], \implode('.', $stepsLeft)just next toarray_dot_get()and that call does same check.
How to reproduce?
Simple run the tests ;)Playground snippet
No response
Data required to reproduce bug locally
None.
Version
0.30
Relevant error output
Copy and paste any relevant error output (no backticks needed).Reactions are currently unavailable