1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 15:09:04 +01:00
psalm/src/Psalm/Internal/PhpVisitor/NodeCounterVisitor.php

24 lines
342 B
PHP
Raw Normal View History

<?php
namespace Psalm\Internal\PhpVisitor;
use PhpParser;
/**
* @internal
*/
class NodeCounterVisitor extends PhpParser\NodeVisitorAbstract
{
/** @var int */
public $count = 0;
/**
* @return null|int
*/
public function enterNode(PhpParser\Node $node)
{
$this->count++;
2021-09-25 16:50:14 +02:00
return null;
}
}