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="PSR1.Files.SideEffects.FoundWithSymbols"></rule
</ruleset>
To reproduce
Steps to reproduce the behavior:
3. See error message displayed
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 6 and
| | the first side effect is on line 5.
Expected behavior
Versions (please complete the following information):
OS: [e.g., Windows 10, MacOS 10.15]
PHP: [8.0]
PHPCS: [dev-master]
Standard: [PSR1]
The text was updated successfully, but these errors were encountered:
As per #3182 and #3203, attributes are not yet supported in PHPCS, not even in dev-master. Testing of #3203 could help move it forward, but without that PR (or an iteration of it) being merged, it won't be possible to start making sniffs compatible with attributes yet.
Describe the bug
Simple attribute class gives warning
Code sample
Custom ruleset
To reproduce
Steps to reproduce the behavior:
3. See error message displayed
Expected behavior
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: