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 · 1 comment
Open

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

akamasAT opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working Stale Stale label

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
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale Stale label label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Stale label
Projects
None yet
Development

No branches or pull requests

2 participants