for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSemVerChecker\Visitor;
use PhpParser\Node;
use PhpParser\Node\Stmt\Function_;
class FunctionVisitor extends VisitorAbstract {
/**
* @param \PhpParser\Node $node
*/
public function leaveNode(Node $node)
{
if ($node instanceof Function_) {
$this->registry->addFunction($node);
}