mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Docs: added more string types (#4080)
This commit is contained in:
parent
58141d44ed
commit
fc50dd3acb
@ -18,7 +18,7 @@ The type `scalar` is the supertype of all scalar types.
|
||||
|
||||
`numeric` is a supertype of `int` or `float` and [`numeric-string`](#numeric-string).
|
||||
|
||||
### class-string
|
||||
### class-string, interface-string
|
||||
|
||||
Psalm supports a special meta-type for `MyClass::class` constants, `class-string`, which can be used everywhere `string` can.
|
||||
|
||||
@ -49,3 +49,11 @@ Psalm also supports a `trait-string` annotation denote a trait that exists.
|
||||
### numeric-string
|
||||
|
||||
`numeric-string` denotes a string value that has passed an `is_numeric` check.
|
||||
|
||||
### lowercase-string, non-empty-string, non-empty-lowercase-string
|
||||
|
||||
an empty string, lowercased or both at once.
|
||||
|
||||
### html-escaped-string
|
||||
|
||||
A string which can safely be used in a html context
|
||||
|
Loading…
Reference in New Issue
Block a user