mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
added truthy-string alias for non-falsy-string
This commit is contained in:
parent
aae539560b
commit
8f6e16add6
@ -210,6 +210,7 @@ abstract class Atomic implements TypeNode
|
||||
case 'non-empty-string':
|
||||
return new TNonEmptyString();
|
||||
|
||||
case 'truthy-string':
|
||||
case 'non-falsy-string':
|
||||
return new TNonFalsyString();
|
||||
|
||||
|
@ -717,6 +717,13 @@ class TypeCombinationTest extends TestCase
|
||||
'non-empty-string'
|
||||
]
|
||||
],
|
||||
'combineTruthyStringAndNonEmptyString' => [
|
||||
'non-empty-string',
|
||||
[
|
||||
'truthy-string',
|
||||
'non-empty-string'
|
||||
]
|
||||
],
|
||||
'combineNonFalsyNonEmptyString' => [
|
||||
'non-empty-string',
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user