From 4af655cdd73c23aa0c903aca6d8cf01bf367b26f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 23:41:27 +0000 Subject: [PATCH 1/2] composer(deps-dev): Bump rector/rector from 0.18.13 to 0.19.2 Bumps [rector/rector](https://github.com/rectorphp/rector) from 0.18.13 to 0.19.2. - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](https://github.com/rectorphp/rector/compare/0.18.13...0.19.2) --- updated-dependencies: - dependency-name: rector/rector dependency-type: direct:development update-type: version-update:semver-minor ... 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 bb917b46..6edee2e6 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "phpstan/phpstan-strict-rules": "^1.5.2", "phpunit/phpunit": "^10.5.8", "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.18.13", + "rector/rector": "~0.19.2", "roave/backward-compatibility-check": "^8.6.0", "vimeo/psalm": "^5.20.0" }, diff --git a/composer.lock b/composer.lock index 199ff2f6..f1a9020e 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": "2b02c0e2a1810fc9d3264f08043fd385", + "content-hash": "454413989dba20c21616705dc748fbb1", "packages": [], "packages-dev": [ { @@ -3512,16 +3512,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.54", + "version": "1.10.56", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "3e25f279dada0adc14ffd7bad09af2e2fc3523bb" + "reference": "27816a01aea996191ee14d010f325434c0ee76fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3e25f279dada0adc14ffd7bad09af2e2fc3523bb", - "reference": "3e25f279dada0adc14ffd7bad09af2e2fc3523bb", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/27816a01aea996191ee14d010f325434c0ee76fa", + "reference": "27816a01aea996191ee14d010f325434c0ee76fa", "shasum": "" }, "require": { @@ -3570,7 +3570,7 @@ "type": "tidelift" } ], - "time": "2024-01-05T15:50:47+00:00" + "time": "2024-01-15T10:43:00+00:00" }, { "name": "phpstan/phpstan-deprecation-rules", @@ -4431,21 +4431,21 @@ }, { "name": "rector/rector", - "version": "0.18.13", + "version": "0.19.2", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618" + "reference": "bc96a99895bf47c6bfe70ea1b799f0081ed5a903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/f8011a76d36aa4f839f60f3b4f97707d97176618", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/bc96a99895bf47c6bfe70ea1b799f0081ed5a903", + "reference": "bc96a99895bf47c6bfe70ea1b799f0081ed5a903", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.35" + "phpstan/phpstan": "^1.10.56" }, "conflict": { "rector/rector-doctrine": "*", @@ -4475,7 +4475,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/0.19.2" }, "funding": [ { @@ -4483,7 +4483,7 @@ "type": "github" } ], - "time": "2023-12-20T16:08:01+00:00" + "time": "2024-01-19T10:58:30+00:00" }, { "name": "revolt/event-loop", From 01b93d3764695c90287181210c7e29d834537964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 20 Jan 2024 12:56:45 +0100 Subject: [PATCH 2/2] Fix: Namespace --- rector.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rector.php b/rector.php index 6b8ea901..47370dba 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/'); @@ -26,7 +26,7 @@ __DIR__ . '/test/', ]); - $rectorConfig->phpVersion(Core\ValueObject\PhpVersion::PHP_81); + $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_81); $rectorConfig->rules([ Php81\Rector\Property\ReadOnlyPropertyRector::class,