| @@ -10,15 +10,15 @@ | ||
| 10 | 10 | */ |
| 11 | 11 | namespace WindPressDeps\Symfony\Component\String; |
| 12 | 12 | |
| 13 | 13 | if (!\function_exists(u::class)) { |
| 14 | - function u(?string $string = '') : UnicodeString | |
| 14 | + function u(?string $string = ''): UnicodeString | |
| 15 | 15 | { |
| 16 | 16 | return new UnicodeString($string ?? ''); |
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | if (!\function_exists(b::class)) { |
| 20 | - function b(?string $string = '') : ByteString | |
| 20 | + function b(?string $string = ''): ByteString | |
| 21 | 21 | { |
| 22 | 22 | return new ByteString($string ?? ''); |
| 23 | 23 | } |
| 24 | 24 | } |
| @@ -25,10 +25,10 @@ | ||
| 25 | 25 | if (!\function_exists(s::class)) { |
| 26 | 26 | /** |
| 27 | 27 | * @return UnicodeString|ByteString |
| 28 | 28 | */ |
| 29 | - function s(?string $string = '') : AbstractString | |
| 29 | + function s(?string $string = ''): AbstractString | |
| 30 | 30 | { |
| 31 | 31 | $string = $string ?? ''; |
| 32 | - return \preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string); | |
| 32 | + return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string); | |
| 33 | 33 | } |
| 34 | 34 | } |