Skip to content

Commit eb8623e

Browse files
authored
fix PHP 8.4 deprecation (#66)
1 parent 6624f9c commit eb8623e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConsoleScript.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* @return string[]
3838
*/
39-
function preg_quote_array(array $strings, string $delim = null) : array{
39+
function preg_quote_array(array $strings, ?string $delim = null) : array{
4040
return array_map(function(string $str) use ($delim) : string{ return preg_quote($str, $delim); }, $strings);
4141
}
4242

0 commit comments

Comments
 (0)