1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
psalm/src/Psalm/NodeTypeProvider.php

20 lines
448 B
PHP
Raw Normal View History

<?php
namespace Psalm;
use PhpParser;
2021-12-03 20:11:20 +01:00
use Psalm\Type\Union;
interface NodeTypeProvider
{
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
public function setType(PhpParser\NodeAbstract $node, Union $type): void;
/**
* @param PhpParser\Node\Expr|PhpParser\Node\Name|PhpParser\Node\Stmt\Return_ $node
*/
public function getType(PhpParser\NodeAbstract $node): ?Union;
}