@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | * @return int|null |
277 | 277 | * @throws \InvalidArgumentException |
278 | 278 | */ |
279 | - private function filterPort($port):?int{ |
|
279 | + private function filterPort($port): ?int{ |
|
280 | 280 | |
281 | 281 | if($port === null){ |
282 | 282 | return null; |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * @inheritDoc |
296 | 296 | */ |
297 | - public function getPort():?int{ |
|
297 | + public function getPort(): ?int{ |
|
298 | 298 | return $this->port; |
299 | 299 | } |
300 | 300 | |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | /** @noinspection RegExpRedundantEscape, RegExpUnnecessaryNonCapturingGroup */ |
473 | 473 | return preg_replace_callback( |
474 | 474 | '/(?:[^a-z\d_\-\.~!\$&\'\(\)\*\+,;=%:@\/'.($query ? '\?' : '').']++|%(?![a-f\d]{2}))/i', |
475 | - fn(array $match):string => rawurlencode($match[0]), |
|
475 | + fn(array $match) : string => rawurlencode($match[0]), |
|
476 | 476 | $str |
477 | 477 | ); |
478 | 478 |
@@ -270,7 +270,7 @@ |
||
270 | 270 | * |
271 | 271 | * @link https://github.com/guzzle/psr7/blob/c0dcda9f54d145bd4d062a6d15f54931a67732f9/src/Uri.php#L89-L130 |
272 | 272 | */ |
273 | -function parseUrl(string $url):?array{ |
|
273 | +function parseUrl(string $url): ?array{ |
|
274 | 274 | // If IPv6 |
275 | 275 | $prefix = ''; |
276 | 276 | /** @noinspection RegExpRedundantEscape */ |