From 15e24fdd7b0a94bdc4164900704ff3d2b8dce7be Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Tue, 27 Feb 2024 08:53:45 +0300 Subject: [PATCH] Removed nullable Type in DefaultTypeVisitor::callable,closure --- src/DefaultTypeVisitor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DefaultTypeVisitor.php b/src/DefaultTypeVisitor.php index 7b1568f..3d7c772 100644 --- a/src/DefaultTypeVisitor.php +++ b/src/DefaultTypeVisitor.php @@ -31,7 +31,7 @@ public function bool(Type $self): mixed return $this->default($self); } - public function callable(Type $self, array $parameters, ?Type $return): mixed + public function callable(Type $self, array $parameters, Type $return): mixed { return $this->default($self); } @@ -51,7 +51,7 @@ public function classStringLiteral(Type $self, string $class): mixed return $this->default($self); } - public function closure(Type $self, array $parameters, ?Type $return): mixed + public function closure(Type $self, array $parameters, Type $return): mixed { return $this->default($self); }