From d0be0507c59293dc47aba205e028534dcb648872 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:17:25 +0300 Subject: [PATCH] Update rector/rector requirement from ^0.17.7 to ^0.18.4 (#114) Co-authored-by: Sergei Predvoditelev --- composer.json | 2 +- rector.php | 2 -- src/Generator/ActiveRecord/Generator.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index db74eac2..d462b375 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "jetbrains/phpstorm-attributes": "^1.0", "nyholm/psr7": "^1.5", "phpunit/phpunit": "^10.2", - "rector/rector": "^0.17.7", + "rector/rector": "^0.18.4", "roave/infection-static-analysis-plugin": "^1.23", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^5.13", diff --git a/rector.php b/rector.php index 6dd991ed..8a6cdc9e 100644 --- a/rector.php +++ b/rector.php @@ -4,7 +4,6 @@ use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; -use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector; use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector; use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; @@ -26,7 +25,6 @@ $rectorConfig->skip([ ClosureToArrowFunctionRector::class, - AddDefaultValueForUndefinedVariableRector::class, NullToStrictStringFuncCallArgRector::class, RemoveExtraParametersRector::class => [__DIR__ . '/src/Generator/AbstractGenerator.php'], ]); diff --git a/src/Generator/ActiveRecord/Generator.php b/src/Generator/ActiveRecord/Generator.php index 1c8d690f..c625fe62 100644 --- a/src/Generator/ActiveRecord/Generator.php +++ b/src/Generator/ActiveRecord/Generator.php @@ -22,7 +22,7 @@ public function __construct( Aliases $aliases, ValidatorInterface $validator, ParametersProvider $parametersProvider, - private ConnectionInterface $connection, + private readonly ConnectionInterface $connection, ) { parent::__construct($aliases, $validator, $parametersProvider); }