Skip to content

Commit 0d775ac

Browse files
authored
Merge pull request #6240 from codeigniter4/dependabot/composer/rector/rector-0.13.8
build(deps-dev): update rector/rector requirement from 0.13.7 to 0.13.8
2 parents edb894f + 85563a3 commit 0d775ac

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan": "^1.7.1",
2525
"phpunit/phpunit": "^9.1",
2626
"predis/predis": "^1.1 || ^2.0",
27-
"rector/rector": "0.13.7"
27+
"rector/rector": "0.13.8"
2828
},
2929
"suggest": {
3030
"ext-fileinfo": "Improves mime type detection for files"

system/HTTP/URI.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,8 @@ public function setAuthority(string $str)
661661
*/
662662
public function setScheme(string $str)
663663
{
664-
$str = strtolower($str);
665-
$str = preg_replace('#:(//)?$#', '', $str);
666-
667-
$this->scheme = $str;
664+
$str = strtolower($str);
665+
$this->scheme = preg_replace('#:(//)?$#', '', $str);
668666

669667
return $this;
670668
}
@@ -932,8 +930,7 @@ protected function applyParts(array $parts)
932930
// Port
933931
if (isset($parts['port']) && $parts['port'] !== null) {
934932
// Valid port numbers are enforced by earlier parse_url or setPort()
935-
$port = $parts['port'];
936-
$this->port = $port;
933+
$this->port = $parts['port'];
937934
}
938935

939936
if (isset($parts['pass'])) {

0 commit comments

Comments
 (0)