-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Extbase's htmlResponse() is added wrongly #2764
Labels
Comments
Merged
ExtbaseControllerActionsMustReturnResponseInterfaceRector changes also abstract methods...
And violates PSR2 by changing the order of modifiers ( |
@julianhofmann: Sure, this is a bug. It is fixed by #2812 |
sabbelasichon
added a commit
that referenced
this issue
Feb 6, 2022
sabbelasichon
added a commit
that referenced
this issue
Feb 6, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
ExtbaseControllerActionsMustReturnResponseInterfaceRector inserts wrong htmlResponse().
Minimal PHP Code Causing Issue
Sorry, can't reproduce it on getrector.org/demo. But I have two issues in the mentioned rector rule in an Extbase controller:
htmlReponse() is wrapped around ForwardResponse
is changed to:
htmlResponse() is added when PropagateResponseException is used
This is the case when providing a download of a file to circumvent page renderer.
is changed to:
Expected Behaviour
The code should be leaved untouched if a ResponseInterface is already returned. Also when a PropagateResponseException is thrown.
The text was updated successfully, but these errors were encountered: