Skip to content

Commit

Permalink
[*]: fix psalm reported errors v2
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Jul 22, 2020
1 parent 3c43d4c commit 25bcbf0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/voku/helper/ASCII.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ public static function charsArray(bool $replace_extra_symbols = false): array
*
* @psalm-pure
*
* @return array <p>An array of replacements.</p>
* @return array<string, array<int, string>>
* @return array
* <p>An array of replacements.</p>
*
* @psalm-return array<string, array<int, string>>
*/
public static function charsArrayWithMultiLanguageValues(bool $replace_extra_symbols = false): array
{
Expand Down Expand Up @@ -324,9 +326,11 @@ public static function charsArrayWithMultiLanguageValues(bool $replace_extra_sym
* @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p>
* @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]}
* array</p>
*
* @psalm-pure
*
* @return array <p>An array of replacements.</p>
* @return array
* <p>An array of replacements.</p>
*
* @psalm-return array{orig: string[], replace: string[]}|array<string, string>
*/
Expand Down Expand Up @@ -418,9 +422,11 @@ public static function charsArrayWithOneLanguage(
* @param bool $replace_extra_symbols [optional] <p>Add some more replacements e.g. "£" with " pound ".</p>
* @param bool $asOrigReplaceArray [optional] <p>TRUE === return {orig: string[], replace: string[]}
* array</p>
*
* @psalm-pure
*
* @return array <p>An array of replacements.</p>
* @return array
* <p>An array of replacements.</p>
*
* @psalm-return array{orig: string[], replace: string[]}|array<string, string>
*/
Expand Down

0 comments on commit 25bcbf0

Please sign in to comment.