From 24f3ac23cdc4cfe763c6c992e09c2439742705eb Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Wed, 10 Apr 2024 12:29:07 +0300 Subject: [PATCH] Deprecate intRange() instead of int() --- TypeReflection/TypeConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TypeReflection/TypeConverter.php b/TypeReflection/TypeConverter.php index d17c498..577dd25 100644 --- a/TypeReflection/TypeConverter.php +++ b/TypeReflection/TypeConverter.php @@ -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();