1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

docs: added positive integer (#4078)

* docs: added positive integer

* added to toc
This commit is contained in:
Markus Staab 2020-08-28 18:55:50 +02:00 committed by Daniil Gentili
parent 9190571cfc
commit 2375a3b2cd
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Atomic types are the basic building block of all type information used in Psalm.
## [Scalar types](scalar_types.md)
- [int](scalar_types.md)
- [positive-int](scalar_types.md#positive-int)
- [float](scalar_types.md)
- [string](scalar_types.md)
- [class-string and class-string<Foo>](scalar_types.md#class-string)

View File

@ -10,6 +10,10 @@ The type `scalar` is the supertype of all scalar types.
`array-key` is the supertype (but not a union) of `int` and `string`.
### positive-int
`positive-int` allows only positive integers
### numeric
`numeric` is a supertype of `int` or `float` and [`numeric-string`](#numeric-string).