-
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
Yield From values are not recognised as returned values in Squiz FunctionComment sniff #1364
Comments
This was reported as bug #479 and released in version 2.3.1 nearly 2 years ago. I've given it another test and I don't receive the error, and the unit tests are still passing, so I can't see a regression. Are you using a really old version of PHPCS? |
Oh, sorry I misinterpreted the problem when creating the issue. The root cause seem to be the usage of
The offending code is
|
…lues in Squiz FunctionComment sniff
Thanks for that extra code. It made the problem is to find and fix. |
I was just trying to understand how the tests work and to send PR 🙂 It's great that you managed to find and fix it so quickly. Thanks. |
I want to typehint the generator contents to my IDE. It's a generator, but it acts like an array of entities as well.
Unfortunatelly I end up with phpcs error:
Function has no return statement, but annotation @return is present (Squiz.Commenting.FunctionComment.InvalidNoReturn)
Is this expected behaviour?
The text was updated successfully, but these errors were encountered: