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
/.../test.php:1:1: warning - A file should declare new symbols
(classes, functions, constants, etc.) and cause no other side effects,
or it should execute logic with side effects, but should not do both.
The first symbol is defined on line 7 and the first side effect is on line 3.
(PSR1.Files.SideEffects.FoundWithSymbols)
Please note that the statement alone will also fail:
No date, but it probably wont be for a few weeks. I only just made the first commits for 2.6.1 this morning, so I've still got to go through the full bug list and spend time testing.
Declaring an anonymous class (PHP 7 feature) makes rule
PSR1.Files.SideEffects.FoundWithSymbols
to fail.Example:
phpcs error:
Please note that the statement alone will also fail:
The text was updated successfully, but these errors were encountered: