Information
- Language: PHP
- Plugins: none
Description
When code begins with class | interface | trait the class-name after it is not matched.
When an whitespace is added before class the class-name is matched correctly.
I know that correct php code starts with <?php and then first class-name is matched correctly.
But opening tag is often dropped in code snippets fot better readability (blogs, docs, ..) and then this is an issue.
Code snippet
The code being highlighted incorrectly. Class name `First` is not matched.
class First {}
class Second {}