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

Commit a740b9f

Browse files
committed
CS/consistency fixes
- Added comma into new exception message (grammar) - Added space around `.` operator in test (CS)
1 parent 308fc7b commit a740b9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function withPort($port)
308308
{
309309
if (! is_numeric($port) && $port !== null) {
310310
throw new InvalidArgumentException(sprintf(
311-
'Invalid port "%s" specified; must be an integer, an integer string or null',
311+
'Invalid port "%s" specified; must be an integer, an integer string, or null',
312312
(is_object($port) ? get_class($port) : gettype($port))
313313
));
314314
}

test/UriTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function testWithPortReturnsNewInstanceWithProvidedPort($port)
8989
$this->assertNotSame($uri, $new);
9090
$this->assertEquals($port, $new->getPort());
9191
$this->assertEquals(
92-
sprintf('https://user:[email protected]%s/foo?bar=baz#quz', $port === null ? '' : ':'.$port),
92+
sprintf('https://user:[email protected]%s/foo?bar=baz#quz', $port === null ? '' : ':' . $port),
9393
(string) $new
9494
);
9595
}

0 commit comments

Comments
 (0)