1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-05 20:48:45 +01:00
psalm/src/Psalm/Internal/Visitor/NodeCleanerVisitor.php
2019-02-17 13:17:45 -05:00

24 lines
455 B
PHP

<?php
namespace Psalm\Internal\Visitor;
use PhpParser;
/**
* @internal
*/
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;
}
}