The expression return string_split('#/#', $path) returns an array which contains values of type array which are incompatible with the documented value type string.
Loading history...
13
}
14
15
/**
16
* Splits the string into parts using regular expressions and returns nonempty parts.
17
* @param string $pattern The pattern to use for splitting
18
* @param string $subject The string to split
19
* @return string[] Split parts from the string
20
*/
21
function string_split(string $pattern, string $subject): array