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

Commit 212c81d

Browse files
mtagliabmichalbundyra
authored andcommitted
Fixed problem with substr backwards compatibility
https://www.php.net/manual/en/migration70.incompatible.php#119151 substr behavior has changed from PHP 5.6 to PHP 7.0
1 parent 8cc05d9 commit 212c81d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 parse($uri)
308308

309309
// If authority ends with colon, port will be empty string.
310310
// Remove the colon from authority, but keeps port null
311-
if ($port !== '') {
311+
if ($port && $port !== '') {
312312
$this->setPort((int) $port);
313313
}
314314

0 commit comments

Comments
 (0)