Skip to content

Commit ac9419d

Browse files
committed
simplify
1 parent 71723a6 commit ac9419d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Analyser/TypeSpecifier.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,10 +2578,6 @@ private function expressionContainsNonPureCall(Expr $expr, Scope $scope): bool
25782578
{
25792579
$nodeFinder = new NodeFinder();
25802580
$found = $nodeFinder->findFirst([$expr], function (Node $node) use ($scope): bool {
2581-
if (!$node instanceof Expr) {
2582-
return false;
2583-
}
2584-
25852581
if ($node instanceof FuncCall) {
25862582
if ($node->name instanceof Name) {
25872583
if (!$this->reflectionProvider->hasFunction($node->name, $scope)) {

0 commit comments

Comments
 (0)