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

Fix unary operator precedence change #4519

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Dec 28, 2024

Closes #4503

@rxu
Copy link

rxu commented Dec 28, 2024

There's a similar entry but for binary operators on line 169

$change = $this->binaryOperators[$op]['precedence_change'];

Probably needs adjusting as well.

@fabpot
Copy link
Contributor Author

fabpot commented Dec 28, 2024

There's a similar entry but for binary operators on line 169

$change = $this->binaryOperators[$op]['precedence_change'];

Probably needs adjusting as well.

I don't think so.

@fabpot fabpot merged commit 2e13a83 into twigphp:3.x Dec 28, 2024
48 of 50 checks passed
@fabpot fabpot deleted the precedence-change-fix branch December 28, 2024 14:09
@rxu
Copy link

rxu commented Dec 28, 2024

Tested locally and the issue seems to be fixed. Thanks.

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.

Twig 3.15 introduces potential bc break for extensions with operators
2 participants