Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8a444fa

Browse files
committed
Merge branch 'hotfix/275'
Close #275
2 parents 754a2ce + a6e42bf commit 8a444fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/MessageTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ private function setHeaders(array $originalHeaders)
341341
private function validateProtocolVersion($version)
342342
{
343343
if (empty($version)) {
344-
throw new InvalidArgumentException(sprintf(
344+
throw new InvalidArgumentException(
345345
'HTTP protocol version can not be empty'
346-
));
346+
);
347347
}
348348
if (! is_string($version)) {
349349
throw new InvalidArgumentException(sprintf(

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function withPort($port)
329329
return $this;
330330
}
331331

332-
if ($port !== null && $port < 1 || $port > 65535) {
332+
if ($port !== null && ($port < 1 || $port > 65535)) {
333333
throw new InvalidArgumentException(sprintf(
334334
'Invalid port "%d" specified; must be a valid TCP/UDP port',
335335
$port

0 commit comments

Comments
 (0)