Skip to content

Commit

Permalink
Deprecate intRange() instead of int()
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Apr 12, 2024
1 parent f0ef59d commit 24f3ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TypeReflection/TypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function string(Type $self): mixed
return NamedTypeReflection::string();
}

public function intRange(Type $self, ?int $min, ?int $max): mixed
public function int(Type $self, ?int $min = null, ?int $max = null): mixed
{
if ($min === null && $max === null) {
return NamedTypeReflection::int();
Expand Down

0 comments on commit 24f3ac2

Please sign in to comment.