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 f62d3cb commit d1930b8Copy full SHA for d1930b8
system/Helpers/Array/ArrayHelper.php
@@ -26,14 +26,21 @@ final class ArrayHelper
26
*
27
* @used-by dot_array_search()
28
29
+ * @param string $index The index as dot array syntax.
30
+ *
31
* @return array|bool|int|object|string|null
32
*/
33
public static function dotSearch(string $index, array $array)
34
{
35
return self::arraySearchDot(self::convertToArray($index), $array);
36
}
37
- private static function convertToArray(string $index)
38
+ /**
39
40
41
+ * @return list<string> The index as an array.
42
+ */
43
+ private static function convertToArray(string $index): array
44
45
// See https://regex101.com/r/44Ipql/1
46
$segments = preg_split(
0 commit comments