We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af4600 commit 425e6d2Copy full SHA for 425e6d2
src/UrlBuilder.php
@@ -42,7 +42,7 @@ public function __construct($url)
42
*/
43
public function build($absolute = true)
44
{
45
- $host = $absolute ? $this->get('scheme') . '://' . $this->get('host') . $this->get('port') : '';
+ $host = $absolute ? $this->get('scheme') . '://' . $this->get('host') . (($port = $this->get('port')) ? ":{$port}": '') : '';
46
$path = '/' . trim($this->get('path'), '/');
47
$query = $this->get('query') ? '?' . $this->get('query') : '';
48
0 commit comments