@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @return int|null |
| 278 | 278 | * @throws \InvalidArgumentException |
| 279 | 279 | */ |
| 280 | - protected function filterPort($port):?int{ |
|
| 280 | + protected function filterPort($port): ?int{ |
|
| 281 | 281 | |
| 282 | 282 | if($port === null){ |
| 283 | 283 | return null; |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | /** |
| 296 | 296 | * @inheritDoc |
| 297 | 297 | */ |
| 298 | - public function getPort():?int{ |
|
| 298 | + public function getPort(): ?int{ |
|
| 299 | 299 | return $this->port; |
| 300 | 300 | } |
| 301 | 301 | |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | /** @noinspection RegExpRedundantEscape, RegExpUnnecessaryNonCapturingGroup */ |
| 474 | 474 | return preg_replace_callback( |
| 475 | 475 | '/(?:[^a-z\d_\-\.~!\$&\'\(\)\*\+,;=%:@\/'.($query ? '\?' : '').']++|%(?![a-f\d]{2}))/i', |
| 476 | - fn(array $match):string => rawurlencode($match[0]), |
|
| 476 | + fn(array $match) : string => rawurlencode($match[0]), |
|
| 477 | 477 | $str |
| 478 | 478 | ); |
| 479 | 479 | |