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.
get
1 parent 99e528e commit eaf7cffCopy full SHA for eaf7cff
src/UrlBuilder.php
@@ -42,7 +42,7 @@ public function __construct($url)
42
*/
43
public function build($absolute = true)
44
{
45
- $host = $absolute ? $this->urlParts['scheme'] . '://' . $this->urlParts['host'] . ($this->urlParts['port'] ?? '') : '';
+ $host = $absolute ? $this->get('scheme') . '://' . $this->get('host') . $this->get('port') : '';
46
$path = '/' . trim($this->get('path'), '/');
47
48
return $host . $path;
0 commit comments