You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0"?>
<rulesetname="My Custom Standard">
<description>If you are using a custom ruleset, please enter it here.</description>
<ruleref="Squiz.PHP.EmbeddedPhp.ContentAfterEnd"/>
</ruleset>
To reproduce
Steps to reproduce the behavior:
Create a file called test.php with the code sample above...
Run phpcbf test.php ...
phpcbf created invalid HTML
?>
<!DOCTYPE html>
Expected behavior
There is no space allowed before the DOCTYPE tag - any space before the DOCTYPE will cause browsers to run quirks mode.
Versions (please complete the following information):
OS: Centos 8
PHP: 7.4
PHPCS: master
Standard: custom
The text was updated successfully, but these errors were encountered:
Describe the bug
Code sample
?><!DOCTYPE html>
Custom ruleset
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample above...phpcbf test.php ...
?> <!DOCTYPE html>
Expected behavior
There is no space allowed before the DOCTYPE tag - any space before the DOCTYPE will cause browsers to run quirks mode.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: