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

[DependencyInjection] Extract GetByTypeMethodCallToConstructorInjectionRector to make migration smoother #685

Merged
merged 2 commits into from
Dec 1, 2024

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Dec 1, 2024

No description provided.

@TomasVotruba TomasVotruba changed the title tv get to inject [DependencyInjection] Extract GetByTypeMethodCallToConstructorInjectionRector to make migration smoother Dec 1, 2024
@TomasVotruba TomasVotruba merged commit 6e196ef into main Dec 1, 2024
5 checks passed
@TomasVotruba TomasVotruba deleted the tv-get-to-inject branch December 1, 2024 13:54

final class SomeCommand extends Controller
{
public function __construct(private SomeType $someType)
Copy link
Member

Choose a reason for hiding this comment

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

min php version 8.0 is needed for promotion property

Copy link
Member

Choose a reason for hiding this comment

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

I see, it already handled at $this->classDependencyManipulator->addConstructorDependency($node, $propertyMetadata) that verify php version 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants