2018-07-03 18:27:14 +02:00
|
|
|
<?php
|
2018-11-06 03:57:36 +01:00
|
|
|
namespace Psalm\Internal\Visitor;
|
2018-07-03 18:27:14 +02:00
|
|
|
|
|
|
|
use PhpParser;
|
2018-11-06 03:57:36 +01:00
|
|
|
use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
|
2018-07-03 18:27:14 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|