From 40c0e92ae2d3467d0557d3790875f306cb6b01ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Jul 2022 15:04:54 +0000 Subject: [PATCH 1/2] build(deps-dev): update rector/rector requirement from 0.13.7 to 0.13.8 Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.13.7...0.13.8) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7520948f965b..8ad8b1e91a9f 100644 --- a/composer.json +++ b/composer.json @@ -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" From 85563a325988ca81d0b82a31ed52b1a795aa9692 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 8 Jul 2022 00:10:58 +0700 Subject: [PATCH 2/2] re-run rector for remove just variabel used for assign variable --- system/HTTP/URI.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/system/HTTP/URI.php b/system/HTTP/URI.php index e0a6ff9f2386..7634b415ec7e 100644 --- a/system/HTTP/URI.php +++ b/system/HTTP/URI.php @@ -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; } @@ -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'])) {