False positives are raised for Drupal.Commenting.FunctionComment.InvalidNoReturn when yield is used.
mfernea created an issue. See original summary.
Here is the pull request: https://github.com/pfrenssen/coder/pull/8
The test is failing on PHP 5.4 because yield was introduced in PHP 5.5 and PHPCS_T_YIELD is not available hence T_YIELD is not available too. I don't know how to fix this.
fix(FunctionComment): Recognise 'yield' as valid return statement (#...
Committed, thanks!
Revert "fix(FunctionComment): Recognise 'yield' as valid return...
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
mfernea commentedHere is the pull request: https://github.com/pfrenssen/coder/pull/8
Comment #3
mfernea commentedThe test is failing on PHP 5.4 because yield was introduced in PHP 5.5 and PHPCS_T_YIELD is not available hence T_YIELD is not available too. I don't know how to fix this.
Comment #5
klausiCommitted, thanks!