The expression return preg_split('//u',...1, PREG_SPLIT_NO_EMPTY) could return the type false which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
25
}
26
}
27
28
if ( ! function_exists('dropDoubleQuotes')) {
29
/**
30
* Drop the beginning and ending double quotes.
31
*
32
* @param string $string
33
* @return string
34
*/
35
function dropDoubleQuotes(string $string) : string