diff --git a/composer.json b/composer.json index 2e922791..e08a960c 100644 --- a/composer.json +++ b/composer.json @@ -54,7 +54,7 @@ "phpunit/phpunit": "^10.5.5", "psalm/plugin-phpunit": "~0.18.4", "psalm/plugin-symfony": "^5.1.0", - "rector/rector": "~0.18.13", + "rector/rector": "~0.19.0", "symplify/config-transformer": "^12.2.6", "vimeo/psalm": "^5.18.0" }, diff --git a/composer.lock b/composer.lock index 90ec4cf3..0513aa12 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": "48f3bc1e773b45909a5a837054906681", + "content-hash": "5de34f491084daca422e3fe87dea7fc4", "packages": [ { "name": "brick/math", @@ -6895,16 +6895,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.54", + "version": "1.10.55", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "3e25f279dada0adc14ffd7bad09af2e2fc3523bb" + "reference": "9a88f9d18ddf4cf54c922fbeac16c4cb164c5949" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3e25f279dada0adc14ffd7bad09af2e2fc3523bb", - "reference": "3e25f279dada0adc14ffd7bad09af2e2fc3523bb", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9a88f9d18ddf4cf54c922fbeac16c4cb164c5949", + "reference": "9a88f9d18ddf4cf54c922fbeac16c4cb164c5949", "shasum": "" }, "require": { @@ -6953,7 +6953,7 @@ "type": "tidelift" } ], - "time": "2024-01-05T15:50:47+00:00" + "time": "2024-01-08T12:32:40+00:00" }, { "name": "phpunit/php-code-coverage", @@ -7504,21 +7504,21 @@ }, { "name": "rector/rector", - "version": "0.18.13", + "version": "0.19.0", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618" + "reference": "503f4ead06b3892bd106f67f3c86d4e36c94423d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/f8011a76d36aa4f839f60f3b4f97707d97176618", - "reference": "f8011a76d36aa4f839f60f3b4f97707d97176618", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/503f4ead06b3892bd106f67f3c86d4e36c94423d", + "reference": "503f4ead06b3892bd106f67f3c86d4e36c94423d", "shasum": "" }, "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.10.35" + "phpstan/phpstan": "^1.10.52" }, "conflict": { "rector/rector-doctrine": "*", @@ -7548,7 +7548,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.0" }, "funding": [ { @@ -7556,7 +7556,7 @@ "type": "github" } ], - "time": "2023-12-20T16:08:01+00:00" + "time": "2024-01-09T00:49:06+00:00" }, { "name": "sanmai/later", diff --git a/rector.php b/rector.php index df8d1387..dbd6ba96 100644 --- a/rector.php +++ b/rector.php @@ -12,8 +12,8 @@ */ use Rector\Config; -use Rector\Core; use Rector\PHPUnit; +use Rector\ValueObject; return static function (Config\RectorConfig $rectorConfig): void { $rectorConfig->cacheDirectory(__DIR__ . '/.build/rector/'); @@ -25,7 +25,7 @@ __DIR__ . '/test/', ]); - $rectorConfig->phpVersion(Core\ValueObject\PhpVersion::PHP_83); + $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_83); $rectorConfig->sets([ PHPUnit\Set\PHPUnitSetList::PHPUNIT_100,