We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603db9f commit 7ee981aCopy full SHA for 7ee981a
system/Helpers/Array/ArrayHelper.php
@@ -24,14 +24,21 @@ final class ArrayHelper
24
*
25
* @used-by dot_array_search()
26
27
+ * @param string $index The index as dot array syntax.
28
+ *
29
* @return array|bool|int|object|string|null
30
*/
31
public static function dotSearch(string $index, array $array)
32
{
33
return self::arraySearchDot(self::convertToArray($index), $array);
34
}
35
- private static function convertToArray(string $index)
36
+ /**
37
38
39
+ * @return list<string> The index as an array.
40
+ */
41
+ private static function convertToArray(string $index): array
42
43
// See https://regex101.com/r/44Ipql/1
44
$segments = preg_split(
0 commit comments