1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +01:00

interface compat

This commit is contained in:
orklah 2021-09-25 17:33:12 +02:00
parent bff08670f5
commit 6c892125c3

View File

@ -18,7 +18,7 @@ class TypeMappingVisitor extends NodeVisitorAbstract
$this->real_type_provider = $real_type_provider;
}
public function enterNode(Node $node): void
public function enterNode(Node $node)
{
$origNode = $node;
@ -29,5 +29,7 @@ class TypeMappingVisitor extends NodeVisitorAbstract
/** @psalm-suppress ArgumentTypeCoercion */
$this->real_type_provider->setType($origNode, clone $node_type);
}
return null;
}
}