We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eec94a4 commit b87ee39Copy full SHA for b87ee39
1 file changed
system/Helpers/array_helper.php
@@ -72,6 +72,7 @@ function _array_search_dot(array $indexes, array $array)
72
$answer = array_filter($answer, static fn ($value) => $value !== null);
73
74
if ($answer !== []) {
75
+ // If array only has one element, we return that element for BC.
76
return count($answer) === 1 ? current($answer) : $answer;
77
}
78
0 commit comments