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

24 lines
455 B
PHP
Raw Normal View History

<?php
2018-11-06 03:57:36 +01:00
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;
}
}