mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 21:16:23 +05:30
Fix deprecated warning in PHP 8.4
This commit is contained in:
parent
debf3e47ca
commit
6505be2b7c
2 changed files with 2 additions and 2 deletions
2
system/vendor/jbroadway/urlify/URLify.php
vendored
2
system/vendor/jbroadway/urlify/URLify.php
vendored
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue