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 40c0e92 commit 85563a3Copy full SHA for 85563a3
system/HTTP/URI.php
@@ -661,10 +661,8 @@ public function setAuthority(string $str)
661
*/
662
public function setScheme(string $str)
663
{
664
- $str = strtolower($str);
665
- $str = preg_replace('#:(//)?$#', '', $str);
666
-
667
- $this->scheme = $str;
+ $str = strtolower($str);
+ $this->scheme = preg_replace('#:(//)?$#', '', $str);
668
669
return $this;
670
}
@@ -932,8 +930,7 @@ protected function applyParts(array $parts)
932
930
// Port
933
931
if (isset($parts['port']) && $parts['port'] !== null) {
934
// Valid port numbers are enforced by earlier parse_url or setPort()
935
- $port = $parts['port'];
936
- $this->port = $port;
+ $this->port = $parts['port'];
937
938
939
if (isset($parts['pass'])) {
0 commit comments