1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +01:00
psalm/src/Psalm/Visitor/NodeCleanerVisitor.php

22 lines
473 B
PHP
Raw Normal View History

<?php
namespace Psalm\Visitor;
use PhpParser;
use Psalm\Checker\Statements\ExpressionChecker;
class NodeCleanerVisitor extends PhpParser\NodeVisitorAbstract implements PhpParser\NodeVisitor
{
/**
* @param PhpParser\Node $node
*
* @return null|int
*/
public function enterNode(PhpParser\Node $node)
{
/** @psalm-suppress NoInterfaceProperties */
unset($node->inferredType, $node->assertions);
return null;
}
}