diff --git a/composer.json b/composer.json index 450dae03..f8bccab7 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "infection/infection": "~0.27.9", "phpunit/phpunit": "^10.5.9", "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 cb7bab13..9d306d97 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": "83ab7cafa709957186bf3f1dafc6f63e", + "content-hash": "5405c17a526752298d9f688d099d30ae", "packages": [], "packages-dev": [ { @@ -2863,16 +2863,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.50", + "version": "1.10.56", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4" + "reference": "27816a01aea996191ee14d010f325434c0ee76fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/06a98513ac72c03e8366b5a0cb00750b487032e4", - "reference": "06a98513ac72c03e8366b5a0cb00750b487032e4", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/27816a01aea996191ee14d010f325434c0ee76fa", + "reference": "27816a01aea996191ee14d010f325434c0ee76fa", "shasum": "" }, "require": { @@ -2921,7 +2921,7 @@ "type": "tidelift" } ], - "time": "2023-12-13T10:59:42+00:00" + "time": "2024-01-15T10:43:00+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3633,21 +3633,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": "*", @@ -3677,7 +3677,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": [ { @@ -3685,7 +3685,7 @@ "type": "github" } ], - "time": "2023-12-20T16:08:01+00:00" + "time": "2024-01-19T10:58:30+00:00" }, { "name": "revolt/event-loop", diff --git a/rector.php b/rector.php index f83490e6..ce841d49 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,