Skip to content

Commit

Permalink
Closes #887
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 5, 2021
1 parent f301eb1 commit f142087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StaticAnalysis/CodeUnitFindingVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final class CodeUnitFindingVisitor extends NodeVisitorAbstract
*/
private $functions = [];

public function enterNode(Node $node)
public function enterNode(Node $node): void
{
if ($node instanceof Class_) {
if ($node->isAnonymous()) {
Expand All @@ -64,7 +64,7 @@ public function enterNode(Node $node)
}

if (!$node instanceof ClassMethod && !$node instanceof Function_) {
return null;
return;
}

if ($node instanceof ClassMethod) {
Expand Down

0 comments on commit f142087

Please sign in to comment.