-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Take calls from plain php files into account #79
Conversation
yield [[ | ||
__DIR__ . '/Fixture/Tests/MethodForTests.php', | ||
__DIR__ . '/Fixture/Tests/SkipCalledInTests.php', | ||
], [[$errorMessage, 13, RuleTips::SOLUTION_MESSAGE]]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this test was wrong before and reporting 2 errors is correct, as the only calls are in Test-classes
ping @TomasVotruba would be great to get this false positives out of the way. please also see the 2 other PRs |
@@ -50,13 +50,10 @@ public function processNode(Node $node, Scope $scope): ?array | |||
return null; | |||
} | |||
|
|||
$classReflection = $scope->getClassReflection(); | |||
if (! $classReflection instanceof ClassReflection) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before this PR, this check made collection on code which is not within class-scope early exiting.
@TomasVotruba if you could merge this one and tag a new release, we would have fixed a major source of false postives with this lib 🤘 |
Let's ship this :) thank you 👏 |
thank you |
No description provided.