Skip to content

Commit 8521b45

Browse files
committed
api rebuilt
1 parent 5b39ffb commit 8521b45

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

api.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,11 +2598,11 @@ public function getClientMediaType(): ?string
25982598
*/
25992599
final class Uri implements UriInterface
26002600
{
2601-
private const SCHEMES = ['http' => 80, 'https' => 443];
2601+
/*private*/ const SCHEMES = ['http' => 80, 'https' => 443];
26022602

2603-
private const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~';
2603+
/*private*/ const CHAR_UNRESERVED = 'a-zA-Z0-9_\-\.~';
26042604

2605-
private const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
2605+
/*private*/ const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
26062606

26072607
/** @var string Uri scheme. */
26082608
private $scheme = '';
@@ -2684,7 +2684,7 @@ public function getHost(): string
26842684
return $this->host;
26852685
}
26862686

2687-
public function getPort(): ?int
2687+
public function getPort() /*:?int*/
26882688
{
26892689
return $this->port;
26902690
}
@@ -2852,15 +2852,15 @@ private static function isNonStandardPort(string $scheme, int $port): bool
28522852
return !isset(self::SCHEMES[$scheme]) || $port !== self::SCHEMES[$scheme];
28532853
}
28542854

2855-
private function filterPort($port): ?int
2855+
private function filterPort($port) /*:?int*/
28562856
{
28572857
if (null === $port) {
28582858
return null;
28592859
}
28602860

28612861
$port = (int) $port;
2862-
if (0 > $port || 0xffff < $port) {
2863-
throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port));
2862+
if (1 > $port || 0xffff < $port) {
2863+
throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 1 and 65535', $port));
28642864
}
28652865

28662866
return self::isNonStandardPort($this->scheme, $port) ? $port : null;

0 commit comments

Comments
 (0)