Skip to content

Commit

Permalink
Merge pull request #6240 from codeigniter4/dependabot/composer/rector…
Browse files Browse the repository at this point in the history
…/rector-0.13.8

build(deps-dev): update rector/rector requirement from 0.13.7 to 0.13.8
  • Loading branch information
samsonasik authored Jul 7, 2022
2 parents edb894f + 85563a3 commit 0d775ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"phpstan/phpstan": "^1.7.1",
"phpunit/phpunit": "^9.1",
"predis/predis": "^1.1 || ^2.0",
"rector/rector": "0.13.7"
"rector/rector": "0.13.8"
},
"suggest": {
"ext-fileinfo": "Improves mime type detection for files"
Expand Down
9 changes: 3 additions & 6 deletions system/HTTP/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,8 @@ public function setAuthority(string $str)
*/
public function setScheme(string $str)
{
$str = strtolower($str);
$str = preg_replace('#:(//)?$#', '', $str);

$this->scheme = $str;
$str = strtolower($str);
$this->scheme = preg_replace('#:(//)?$#', '', $str);

return $this;
}
Expand Down Expand Up @@ -932,8 +930,7 @@ protected function applyParts(array $parts)
// Port
if (isset($parts['port']) && $parts['port'] !== null) {
// Valid port numbers are enforced by earlier parse_url or setPort()
$port = $parts['port'];
$this->port = $port;
$this->port = $parts['port'];
}

if (isset($parts['pass'])) {
Expand Down

0 comments on commit 0d775ac

Please sign in to comment.