Skip to content

Commit

Permalink
Removed nullable Type in DefaultTypeVisitor::callable,closure
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 27, 2024
1 parent 1d12f5a commit 15e24fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DefaultTypeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 15e24fd

Please sign in to comment.