Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 8, 2026

No description provided.

if (!$methodCall->name instanceof Node\Identifier) {
return [];
}
$scope = $scope->filterByTruthyValue(new Node\Expr\BinaryOp\NotIdentical($methodCall->var, new Node\Expr\ConstFetch(new Node\Name('null'))));
Copy link
Contributor Author

@staabm staabm Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevents scope filtering if possible

@ondrejmirtes ondrejmirtes merged commit e45b086 into phpstan:2.1.x Jan 8, 2026
631 of 646 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the furst branch January 8, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants