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
I think this sniff rule is supposed to prevent old and discouraged PHP feature, but it also detects methods inside anonymous classes.
The text was updated successfully, but these errors were encountered:
Fixed bug #943 : Squiz.PHP.InnerFunctions.NotAllowed reported in anon…
e37a50c
…ymous classes
Thanks for reporting this. It has been fixed.
Sorry, something went wrong.
Hello !
The problem still occurs with
new class { public function valueObject(): object { return new class { public function string(): string { return 'string'; } }; } };
Fix 🐛 squizlabs#943
327b0d9
No branches or pull requests
I think this sniff rule is supposed to prevent old and discouraged PHP feature, but it also detects methods inside anonymous classes.
The text was updated successfully, but these errors were encountered: