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 I use phpcs --standard=PSR2, I get this warning:
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
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 2 and the first side
| | effect is on line 2.
---------------------------------------------------------------------------------------------------------------------------------------
I suppose PHPCS mistakes my function for the define function included in PHP?
The text was updated successfully, but these errors were encountered:
Hello,
I have a function called
define()
:When I use
phpcs --standard=PSR2
, I get this warning:I suppose PHPCS mistakes my function for the
define
function included in PHP?The text was updated successfully, but these errors were encountered: