1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add detail about non-empty-string

This commit is contained in:
Matt Brown 2021-02-10 12:20:36 -05:00
parent ccdb29abfa
commit a45b5e2ae0

View File

@ -52,7 +52,9 @@ Psalm also supports a `trait-string` annotation denote a trait that exists.
### lowercase-string, non-empty-string, non-empty-lowercase-string
an empty string, lowercased or both at once.
An empty string, lowercased or both at once.
`empty` here is defined as all strings except the empty string `''`. Another type `non-falsy-string` is effectively a subtype of `non-empty-string`, and also precludes the string value `'0'`.
### html-escaped-string