From 0c3a62bc4882dab8e057c58c9f720db891fd085b Mon Sep 17 00:00:00 2001 From: William Owen Ponce <31012084+hamburnyog@users.noreply.github.com> Date: Wed, 5 Oct 2022 14:29:24 +0800 Subject: [PATCH] Update args --- src/Psalm/Type/Atomic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Type/Atomic.php b/src/Psalm/Type/Atomic.php index 7e5a258ea61..ff0868a23b5 100644 --- a/src/Psalm/Type/Atomic.php +++ b/src/Psalm/Type/Atomic.php @@ -231,13 +231,13 @@ public static function create( return new TPositiveInt(); case 'non-positive-int': - return new TIntRange(null, -1); + return new TIntRange(null, 0); case 'negative-int': return new TIntRange(null, -1); case 'non-negative-int': - return new TPositiveInt(); + return new TIntRange(0, null); case 'numeric': return $php_version !== null ? new TNamedObject($value) : new TNumeric();