Fix deprecated warning in PHP 8.4

This commit is contained in:
Dan 2025-04-20 13:05:44 +07:00
commit 6505be2b7c
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class URLify
*
* @psalm-param array<string, string> $map
*/
public static function add_chars(array $map, string $language = null)
public static function add_chars(array $map, ?string $language = null)
{
$language_key = $language ?? \uniqid('urlify', true);

View file

@ -798,7 +798,7 @@ final class ASCII
bool $remove_unsupported_chars = true,
bool $replace_extra_symbols = false,
bool $use_transliterate = false,
bool $replace_single_chars_only = null
?bool $replace_single_chars_only = null
): string {
if ($str === '') {
return '';