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
When trying out the latest PSR-12 support, I found that PSR12.Files.OpenTag.NotAlone was triggering on PHP files where there is just an opening PHP tag. We have some of these in our project due to framework reasons. It's not great but kind of required.
Triggers error
<?php
[phpcs] Opening PHP tag must be on a line by itself (PSR12.Files.OpenTag.NotAlone)
Doesn't trigger error
<?php// comment
Please correct me if I'm wrong but I don't see anywhere in PSR-12 where a PHP file can't just have an opening tag, however useless.
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
PSR12.Files.OpenTag.NotAlone incorrectly identifies PHP file with only an opening tag in it
PSR12.Files.OpenTag incorrectly identifies PHP file with only an opening tag
Oct 23, 2019
When trying out the latest PSR-12 support, I found that
PSR12.Files.OpenTag.NotAlone
was triggering on PHP files where there is just an opening PHP tag. We have some of these in our project due to framework reasons. It's not great but kind of required.Triggers error
<?php
Doesn't trigger error
Please correct me if I'm wrong but I don't see anywhere in PSR-12 where a PHP file can't just have an opening tag, however useless.
The text was updated successfully, but these errors were encountered: