Skip to content

Commit dce6576

Browse files
committed
docs: add PHPDoc
1 parent 3c4b238 commit dce6576

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

system/Helpers/Array/ArrayHelper.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,21 @@ final class ArrayHelper
2929
*
3030
* @used-by dot_array_search()
3131
*
32+
* @param string $index The index as dot array syntax.
33+
*
3234
* @return array|bool|int|object|string|null
3335
*/
3436
public static function dotSearch(string $index, array $array)
3537
{
3638
return self::arraySearchDot(self::convertToArray($index), $array);
3739
}
3840

39-
private static function convertToArray(string $index)
41+
/**
42+
* @param string $index The index as dot array syntax.
43+
*
44+
* @return list<string> The index as an array.
45+
*/
46+
private static function convertToArray(string $index): array
4047
{
4148
// See https://regex101.com/r/44Ipql/1
4249
$segments = preg_split(

0 commit comments

Comments
 (0)