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

[FEATURE] Add MigrateViewHelperRenderStaticRector #4315

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

s2b
Copy link
Contributor

@s2b s2b commented Sep 26, 2024

This rector rule covers the majority of use cases where the now deprecated renderStatic() is used in Fluid ViewHelper classes. It's the same rule that has been used in the TYPO3 Core patch that migrated all existing ViewHelpers to render(). There were some edge cases in the TYPO3 Core which weren't covered, but those are rather old and don't follow recent best practices.

Core Patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85834

Fixes: #4346

@s2b
Copy link
Contributor Author

s2b commented Sep 26, 2024

I saw locally that there are still some phpstan issues. As the rule is already quite complex, fixing those could make it even more difficult to understand. But let me know if and how I should address those.

@sabbelasichon
Copy link
Owner

@s2b Thank you so much. I have already seen your standalone repository. Great work. I will have a look at it soon.

@sabbelasichon
Copy link
Owner

@simonschaufi I haved fixed all the errors. Could you have a quick look at the rule? I would really like to merge it. Very useful rule

This rector rule covers the majority of use cases where the now
deprecated `renderStatic()` is used in Fluid ViewHelper classes.
It's the same rule that has been used in the TYPO3 Core patch that
migrated all existing ViewHelpers to `render()`.
There were some edge cases in the TYPO3 Core that weren't covered,
but those are rather old and don't follow recent best practices.

Core Patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85834
@simonschaufi simonschaufi merged commit 1900364 into sabbelasichon:main Sep 27, 2024
26 checks passed
@simonschaufi
Copy link
Collaborator

Thank you very much!

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.

Deprecation: #104789 - renderStatic() for Fluid ViewHelpers
3 participants