Skip to content

Commit a40f7a5

Browse files
committed
fix: phpstan analyze error in array_helper
1 parent 8bd750f commit a40f7a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Helpers/array_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function _array_search_dot(array $indexes, array $array)
4848
// Grab the current index
4949
$currentIndex = $indexes ? array_shift($indexes) : null;
5050

51-
if (empty($currentIndex) || (! isset($array[$currentIndex]) && $currentIndex !== '*')) {
51+
if (empty($currentIndex) || (int) $currentIndex !== 0 || (! isset($array[$currentIndex]) && $currentIndex !== '*')) {
5252
return null;
5353
}
5454

0 commit comments

Comments
 (0)