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
[Laravel] Add RequestStaticValidateToInjectRector #1143
Conversation
@mrpixeldream Could I ask you for a review? I hope I got that right 😅 |
Why just the validate? Could also be for the other Requests calls, right? |
Sure. Again, I don't use Laravel so I have no idea about the logic here :). If you provide list of these magic static methods, that can be changed here, we can update it |
Ah my bad, I guess usually it's the Request facade, not the Request class itself that is called static. |
This one is, but not the Facade one (that is done in #1140) |
Why do you talk about different PR here? I'm confused |
Mergin for |
789f170
to
708029e
Compare
Yeah, seems fine 👍 |
Because people usually call the Request facade, not the actual class. eg. |
The code-review would be best 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest looks good, even though it seems you put something in this PR that doesn't belong there regarding the name. But that's your choice anyways! :)
.../Laravel/tests/Rector/StaticCall/RequestStaticValidateToInjectRector/Fixture/fixture.php.inc
Show resolved
Hide resolved
rectorphp/rector-src@f8e0477 Fixing scoped build (#1143)
Ref #1138 ,
ref #290