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:
parent
99372a2286
commit
a7c92661fa
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user