Skip to content

Commit

Permalink
Remove dead untested code
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 18, 2024
1 parent 1f3c80a commit 1ab6c28
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Rules/DeadCode/PossiblyPureMethodCallCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use PHPStan\Analyser\Scope;
use PHPStan\Collectors\Collector;
use function count;
use function strtolower;

/**
* @implements Collector<Node\Stmt\Expression, array{class-string, string, int}>
Expand All @@ -34,10 +33,6 @@ public function processNode(Node $node, Scope $scope)
}

$methodName = $node->expr->name->toString();
if (strtolower($methodName) === '__construct') {
return null;
}

$calledOnType = $scope->getType($node->expr->var);
$methodReflection = $scope->getMethodReflection($calledOnType, $methodName);
if ($methodReflection === null) {
Expand Down

0 comments on commit 1ab6c28

Please sign in to comment.