Skip to content

Commit b87ee39

Browse files
committed
revert comment
1 parent eec94a4 commit b87ee39

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Helpers/array_helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function _array_search_dot(array $indexes, array $array)
7272
$answer = array_filter($answer, static fn ($value) => $value !== null);
7373

7474
if ($answer !== []) {
75+
// If array only has one element, we return that element for BC.
7576
return count($answer) === 1 ? current($answer) : $answer;
7677
}
7778

0 commit comments

Comments
 (0)