Skip to content

Add tests for overriding constructors in GetToConstructorInjectionRector#373

Closed
jackbentley wants to merge 1 commit intorectorphp:mainfrom
jackbentley:patch-3
Closed

Add tests for overriding constructors in GetToConstructorInjectionRector#373
jackbentley wants to merge 1 commit intorectorphp:mainfrom
jackbentley:patch-3

Conversation

@jackbentley
Copy link
Copy Markdown

No description provided.

@samsonasik
Copy link
Copy Markdown
Member

I am closing it as it can be resolved by using rule among with AddConstructorParentCallRector

@samsonasik samsonasik closed this Apr 3, 2023
@jackbentley
Copy link
Copy Markdown
Author

@samsonasik Tests still fail when adding that rule.

@samsonasik
Copy link
Copy Markdown
Member

Ok, reopen then, feel free to provide a patch as well when you have a chance as well. I think the child parent param fill should be configurable per we discussed as __construct is magic and the usage can be different on purpose.

@samsonasik samsonasik reopened this Apr 4, 2023
@samsonasik
Copy link
Copy Markdown
Member

I am closing it, since as previoulsly stated, construct is special, and can be different with parent on purpose, that's the "real" override :)

Feel free to open new PR if you have proposed safe solution.

@samsonasik samsonasik closed this Aug 28, 2023
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