mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 19:07:00 +01:00
22 lines
473 B
PHP
22 lines
473 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|