Skip to content

Commit ef6f9a8

Browse files
committed
Fix phpstan errors
1 parent d5322a3 commit ef6f9a8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/FeatureCounter/NodeVisitor/ThrowExpressionFlaggingNodeVisitor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use PhpParser\NodeVisitorAbstract;
1010

1111
final class ThrowExpressionFlaggingNodeVisitor extends NodeVisitorAbstract {
12+
/**
13+
* @return null|int
14+
*/
1215
public function enterNode(Node $node) {
1316
if ($node instanceof Expression && $node->expr instanceof Throw_) {
1417
return NodeVisitor::DONT_TRAVERSE_CHILDREN;

src/FeatureCounter/ValueObject/FeatureCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use PhpParser\Node\Stmt\ClassConst;
2727
use PhpParser\Node\Stmt\Declare_;
2828
use PhpParser\Node\Stmt\Enum_;
29-
use PhpParser\Node\Stmt\Expression;
3029
use PhpParser\Node\Stmt\Property;
3130
use PhpParser\Node\UnionType;
3231
use TomasVotruba\Lines\FeatureCounter\Enum\PhpVersion;

0 commit comments

Comments
 (0)