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

[Formatting Bug]: Brackets in @if condition produce syntax error #892

Open
akamasAT opened this issue Dec 18, 2024 · 0 comments
Open

[Formatting Bug]: Brackets in @if condition produce syntax error #892

akamasAT opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@akamasAT
Copy link

Platform

Windows

Template before formatting

@if($sting == ')')
@endif

Template after formatting

@if($sting == ')')
@endif

Expected Behaviour

no syntax error.
Saving a file with a string comparison where the string contains a bracket throws an error.

Parse Error : syntax error, expecting ')' on line 1
<?php if($sting == ') ?>

Relevant log output

No response

@akamasAT akamasAT added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants