diff --git a/composer.json b/composer.json index 008d9afd2..567e2746b 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "symfony/string": "^6.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.7", + "friendsofphp/php-cs-fixer": "^3.8", "php-parallel-lint/php-parallel-lint": "^1.3", "phpspec/prophecy-phpunit": "^2.0", "phpstan/extension-installer": "^1.1", @@ -23,7 +23,7 @@ "phpunit/phpunit": "^9.5", "rector/phpstan-rules": "^0.4.20", "rector/rector-generator": "dev-main", - "rector/rector-src": "dev-main#848e23b", + "rector/rector-src": "dev-main#4c6e22b", "symfony/console": "^6.0", "symplify/coding-standard": "^10.1", "symplify/easy-coding-standard": "^10.1", diff --git a/src/Rector/General/InjectMethodToConstructorInjectionRector.php b/src/Rector/General/InjectMethodToConstructorInjectionRector.php index a90806c7c..84cbb942d 100644 --- a/src/Rector/General/InjectMethodToConstructorInjectionRector.php +++ b/src/Rector/General/InjectMethodToConstructorInjectionRector.php @@ -121,7 +121,7 @@ public function refactor(Node $node): ?Node new PropertyMetadata($paramName, new ObjectType((string) $param->type), Class_::MODIFIER_PROTECTED) ); - $this->removeNodeFromStatements($node, $injectMethod); + $this->nodeRemover->removeNodeFromStatements($node, $injectMethod); } return $node;