Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DX] Explicitly inject visibility manipulator service instead of parent constructor #1298

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba changed the title inline visibility manipulator [DX] Explicitly inject visibility manipulator service instead of parent constructor Nov 24, 2021
@TomasVotruba TomasVotruba force-pushed the tv-deprecated-visibility-changed branch from e12fb37 to e352e3f Compare November 24, 2021 10:25
@@ -172,7 +170,6 @@ public function autowireAbstractRector(
$this->nodeNameResolver = $nodeNameResolver;
$this->nodeTypeResolver = $nodeTypeResolver;
$this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser;
$this->visibilityManipulator = $visibilityManipulator;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be also removed from the parameters

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why Rector rule missed it 🤔 :)

Thanks 👍 We'll add a rule to cover this too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made issue for it rectorphp/rector#6830

@TomasVotruba TomasVotruba merged commit 0e96615 into main Nov 24, 2021
@TomasVotruba TomasVotruba deleted the tv-deprecated-visibility-changed branch November 24, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants