We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c4b238 commit dce6576Copy full SHA for dce6576
system/Helpers/Array/ArrayHelper.php
@@ -29,14 +29,21 @@ final class ArrayHelper
29
*
30
* @used-by dot_array_search()
31
32
+ * @param string $index The index as dot array syntax.
33
+ *
34
* @return array|bool|int|object|string|null
35
*/
36
public static function dotSearch(string $index, array $array)
37
{
38
return self::arraySearchDot(self::convertToArray($index), $array);
39
}
40
- private static function convertToArray(string $index)
41
+ /**
42
43
44
+ * @return list<string> The index as an array.
45
+ */
46
+ private static function convertToArray(string $index): array
47
48
// See https://regex101.com/r/44Ipql/1
49
$segments = preg_split(
0 commit comments