We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
empty
isset
unset
Describe the bug When empty (or isset, unset) is used as method name, phpcs doesn't recognize it and produce weird error messages
Code sample
<?php declare(strict_types=1); namespace App; abstract class Temp { abstract public function empty(): void; abstract public function isset(): void; abstract public function unset(): Temp; // <- another error for CamelCased return type }
To reproduce
Temp.php
phpcs Temp.php ...
FILE: Temp.php ---------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------- 9 | ERROR | Expected "function abc(...)"; found "function abc(...)" 10 | ERROR | Expected "function abc(...)"; found "function abc(...)" 11 | ERROR | Method name "Temp::Temp" is not in camel caps format 11 | ERROR | Expected "function abc(...)"; found "function abc(...)" ----------------------------------------------------------------------
Expected behavior No errors OR message about inappropriate method name
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered:
Seriously ? Duplicate of #3609 (and #3611 and #3612 and #3613), which has already been fixed via #3610.
Sorry, something went wrong.
My bad: didn't realize that default search condition includes open issues only. Sorry!
No branches or pull requests
Describe the bug
When
empty
(orisset
,unset
) is used as method name, phpcs doesn't recognize it and produce weird error messagesCode sample
To reproduce
Temp.php
with the code sample above...phpcs Temp.php ...
Expected behavior
No errors OR message about inappropriate method name
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: