-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method with name eval
is always reported as error
#3607
Comments
Thanks for reporting this @Philosoft ! I've confirmed the bug. The PR #3608 should fix this. Testing appreciated. |
Thanks for finding and reporting this before it was released |
Same issue with methods named |
Unfortunately still same issue with "unset".
|
@Saeufer Please try |
Describe the bug
PHPCS considers methods with name
eval
to be incorrectCode sample
Custom ruleset
No custom rules. Just PSR12 standrad
To reproduce
Steps to reproduce the behavior:
test.php
with the code sample abovephpcs --standard=PSR12 test.php
If you change method name to basically anything else -
eval1
,evaluate
etc - there is no errorExpected behavior
No complains.
Versions (please complete the following information):
Same thing happens with PHP 8.1.6
The text was updated successfully, but these errors were encountered: