-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"braces" rule breaks indentation in mixed PHP and HTML files #6788
Comments
Hey. thanks for your report! The braces fixer is deprecated and it will get removed in favour of other fixers, you may slowly stop using it. The HTML support will be revoked as it was never supposed to be officially supported. If you mix PHP with any other language, we consider it as bad practice and encourage to separate your logic from your view, and if you need code-support in view like for templating, we suggest to use one of templating engines. If you want to still rely on Fixer for HTML-mixed files, till it's officially dropped, and you want to have bug you noticed fixed, I do encourage you to run PR with the fix. It will be recognised and merged with same flow as any other ticket - only difference is that the fix need to come from interested ppl [and not from core team] You may take a look at search feature looking for HTML keyword to get extra context. Big thanks for understanding! |
Bug report
The rule "braces" breaks indentation of mixed PHP and HTML files.
Description
"braces" rule breaks indentation in mixed PHP and HTML files
Runtime version
3.14.4
Used command
vendor/bin/php-cs-fixer fix
Configuration file
Ruleset used:
Code snippet that reproduces the problem
expected no changes, but fixes to this:
-->
The text was updated successfully, but these errors were encountered: