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

Deprecate OptimizerNodeVisitor::OPTIMIZE_TEXT_NODES #4221

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Aug 22, 2024

Refs #4146

While trying to debug #4146, I realized that this optimization is not possible as we don't know how nodes are going to be used.

See the script provided in #4146 to reproduce the problem.

@brandonkelly Can you confirm that this fixes your problem? Maybe there is also an issue with yield vs echo, but the script provided in the issue runs fine for me after this PR.

doc/deprecated.rst Outdated Show resolved Hide resolved
@fabpot fabpot force-pushed the deprecate-optimize-text-nodes branch from cf4c273 to 7121673 Compare August 23, 2024 07:22
@fabpot fabpot merged commit 1fe2c00 into twigphp:3.x Aug 23, 2024
49 checks passed
@fabpot fabpot deleted the deprecate-optimize-text-nodes branch August 23, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants