mirror of
https://github.com/danog/psalm.git
synced 2025-01-05 20:48:45 +01:00
interface compat
This commit is contained in:
parent
bff08670f5
commit
6c892125c3
@ -18,7 +18,7 @@ class TypeMappingVisitor extends NodeVisitorAbstract
|
|||||||
$this->real_type_provider = $real_type_provider;
|
$this->real_type_provider = $real_type_provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function enterNode(Node $node): void
|
public function enterNode(Node $node)
|
||||||
{
|
{
|
||||||
$origNode = $node;
|
$origNode = $node;
|
||||||
|
|
||||||
@ -29,5 +29,7 @@ class TypeMappingVisitor extends NodeVisitorAbstract
|
|||||||
/** @psalm-suppress ArgumentTypeCoercion */
|
/** @psalm-suppress ArgumentTypeCoercion */
|
||||||
$this->real_type_provider->setType($origNode, clone $node_type);
|
$this->real_type_provider->setType($origNode, clone $node_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user