1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Use int<1,max> to define positivity

This commit is contained in:
Barney Laurance 2022-06-06 17:05:59 +01:00 committed by GitHub
parent 99372a2286
commit a7c92661fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ The type `scalar` is the supertype of all scalar types.
### positive-int
`positive-int` allows only integers greater than zero, i.e. between 1 and `PHP_INT_MAX`.
`positive-int` allows only positive integers (equivalent to int<1, max>)
### numeric