type_provider = $type_provider; } public function enterNode(PhpParser\Node $node): ?int { if ($node instanceof PhpParser\Node\Expr) { $this->type_provider->clearNodeOfTypeAndAssertions($node); } return null; } }