diff --git a/www/admin/class_test.array.php b/www/admin/class_test.array.php index 87146eaf..439252f3 100644 --- a/www/admin/class_test.array.php +++ b/www/admin/class_test.array.php @@ -333,7 +333,7 @@ print "(kosrt, lower case, reverse): " print "
"; $nested = [ 'B' => 'foo', 'a', '0', 9, - 1 => ['z', 'b', 'a'], + '1' => ['z', 'b', 'a'], 'd' => ['zaip', 'bar', 'baz'] ]; print "Nested: " . DgS::printAr($nested) . "
"; diff --git a/www/lib/CoreLibs/Combined/ArrayHandler.php b/www/lib/CoreLibs/Combined/ArrayHandler.php index 16d2c3ab..4bf3b99d 100644 --- a/www/lib/CoreLibs/Combined/ArrayHandler.php +++ b/www/lib/CoreLibs/Combined/ArrayHandler.php @@ -251,10 +251,10 @@ class ArrayHandler * @param array $array * @param string|int|float|bool $search_value * @param string|array $required_key - * @param ?string $serach_key [null] + * @param ?string $search_key [null] * @param string $path_separator [DATA_SEPARATOR] * @param string $current_path - * @return array,path?:string,missing_key?:string}> + * @return array,path?:string,missing_key?:array}> */ public static function findArraysMissingKey( array $array,