mirror of
https://github.com/danog/psalm.git
synced 2025-01-05 20:48:45 +01:00
24 lines
455 B
PHP
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;
|
|
}
|
|
}
|