From 89abb4a85afae8376376a8adf74694f9cd1b16fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 15:32:40 +0000 Subject: [PATCH 1/3] composer(deps-dev): Bump rector/rector from 0.18.13 to 1.0.0 Bumps [rector/rector](https://github.com/rectorphp/rector) from 0.18.13 to 1.0.0. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.18.13...1.0.0) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- composer.lock | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index adde8624..fe1457ab 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "infection/infection": "~0.27.9", "phpunit/phpunit": "^10.5.10", "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.18.13", + "rector/rector": "~1.0.0", "roave/backward-compatibility-check": "^8.6.0", "vimeo/psalm": "^5.21.1" }, diff --git a/composer.lock b/composer.lock index 0901f526..9bbc6291 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e3f226b02b9fcf2af75d1572b9861562", + "content-hash": "b73e15c2b1c8b85eba265b49edd86a42", "packages": [], "packages-dev": [ { @@ -3332,16 +3332,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.50", + "version": "1.10.57", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4" + "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/06a98513ac72c03e8366b5a0cb00750b487032e4", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1627b1d03446904aaa77593f370c5201d2ecc34e", + "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e", "shasum": "" }, "require": { @@ -3390,7 +3390,7 @@ "type": "tidelift" } ], - "time": "2023-12-13T10:59:42+00:00" + "time": "2024-01-24T11:51:34+00:00" }, { "name": "phpunit/php-code-coverage", @@ -4102,21 +4102,21 @@ }, { "name": "rector/rector", - "version": "0.18.13", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618" + "reference": "362258a1f6369fc88d02d469a5478d220f78b0e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/f8011a76d36aa4f839f60f3b4f97707d97176618", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/362258a1f6369fc88d02d469a5478d220f78b0e6", + "reference": "362258a1f6369fc88d02d469a5478d220f78b0e6", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.35" + "phpstan/phpstan": "^1.10.56" }, "conflict": { "rector/rector-doctrine": "*", @@ -4146,7 +4146,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/0.18.13" + "source": "https://github.com/rectorphp/rector/tree/1.0.0" }, "funding": [ { @@ -4154,7 +4154,7 @@ "type": "github" } ], - "time": "2023-12-20T16:08:01+00:00" + "time": "2024-02-06T13:38:07+00:00" }, { "name": "revolt/event-loop", From 7848118195324cc4de3a0355b6313ce25624f1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 7 Feb 2024 16:45:33 +0100 Subject: [PATCH 2/3] Fix: Namespace --- rector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rector.php b/rector.php index 0c8b2029..e9e1bb1d 100644 --- a/rector.php +++ b/rector.php @@ -12,9 +12,9 @@ */ use Rector\Config; -use Rector\Core; use Rector\Php81; use Rector\PHPUnit; +use Rector\ValueObject; return static function (Config\RectorConfig $rectorConfig): void { $rectorConfig->cacheDirectory(__DIR__ . '/.build/rector/'); @@ -27,7 +27,7 @@ __DIR__ . '/test/Util/', ]); - $rectorConfig->phpVersion(Core\ValueObject\PhpVersion::PHP_81); + $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_81); $rectorConfig->rules([ Php81\Rector\Property\ReadOnlyPropertyRector::class, From 1041267a8ce26e2af543eaaa7b21f3fc38265186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 7 Feb 2024 16:45:52 +0100 Subject: [PATCH 3/3] Fix: Use caret operator --- composer.json | 2 +- composer.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index fe1457ab..ea1f9825 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "infection/infection": "~0.27.9", "phpunit/phpunit": "^10.5.10", "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~1.0.0", + "rector/rector": "^1.0.0", "roave/backward-compatibility-check": "^8.6.0", "vimeo/psalm": "^5.21.1" }, diff --git a/composer.lock b/composer.lock index 9bbc6291..89d40438 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b73e15c2b1c8b85eba265b49edd86a42", + "content-hash": "fd325a414140084998c7d0727d15ebb4", "packages": [], "packages-dev": [ {