You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sniff Universal.CodeAnalysis.ConstructorDestructorReturn false-positives if an anonymous function is used inside a constructor. Presumably this also happens for destructors.
Bug Description
The sniff
Universal.CodeAnalysis.ConstructorDestructorReturn
false-positives if an anonymous function is used inside a constructor. Presumably this also happens for destructors.Given the following reproduction Scenario
The issue happens when running this command:
... over a file containing this code:
I'd expect the following behaviour
No warnings or errors.
Instead this happened
Environment
Additional Context (optional)
Tested Against
develop
branch?develop
branch of PHPCSExtra.The text was updated successfully, but these errors were encountered: