Skip to content

Commit

Permalink
Merge pull request #105 from gilbertoalbino/master
Browse files Browse the repository at this point in the history
Update ASCII.php for PHP 8.4 compatibility
  • Loading branch information
voku authored Nov 21, 2024
2 parents fc540ed + 739587a commit 74c3ce8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/voku/helper/ASCII.php
Original file line number Diff line number Diff line change
Expand Up @@ -775,14 +775,14 @@ public static function to_ascii_remap(string $str1, string $str2): array
* @param string $str <p>The input string.</p>
* @param string $language [optional] <p>Language of the source string.
* (default is 'en') | ASCII::*_LANGUAGE_CODE</p>
* @param bool $remove_unsupported_chars [optional] <p>Whether or not to remove the
* @param bool $remove_unsupported_chars [optional] <p>Whether to remove the
* unsupported characters.</p>
* @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound
* ".</p>
* @param bool $use_transliterate [optional] <p>Use ASCII::to_transliterate() for unknown chars.</p>
* @param bool|null $replace_single_chars_only [optional] <p>Single char replacement is better for the
* performance, but some languages need to replace more then one char
* at the same time. | NULL === auto-setting, depended on the
* @param bool $replace_single_chars_only [optional] <p>Single char replacement is better for the
* performance, but some languages need to replace more than one char
* at the same time. If FALSE === auto-setting, depended on the
* language</p>
*
* @psalm-pure
Expand All @@ -798,7 +798,7 @@ public static function to_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 = false
): string {
if ($str === '') {
return '';
Expand Down

0 comments on commit 74c3ce8

Please sign in to comment.