Skip to content

Commit

Permalink
Update args
Browse files Browse the repository at this point in the history
  • Loading branch information
hamburnyog committed Oct 5, 2022
1 parent ae426a0 commit 0c3a62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Type/Atomic.php
Expand Up @@ -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();
Expand Down

0 comments on commit 0c3a62b

Please sign in to comment.