mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
methods and vars cannot be falsy
This commit is contained in:
parent
69589ebe83
commit
e23db18f6b
@ -3276,8 +3276,8 @@ return [
|
||||
'get_called_class' => ['class-string'],
|
||||
'get_cfg_var' => ['string|false', 'option'=>'string'],
|
||||
'get_class' => ['class-string', 'object='=>'object'],
|
||||
'get_class_methods' => ['list<string>', 'object_or_class'=>'object|class-string'],
|
||||
'get_class_vars' => ['array<string,mixed>', 'class'=>'string'],
|
||||
'get_class_methods' => ['list<non-falsy-string>', 'object_or_class'=>'object|class-string'],
|
||||
'get_class_vars' => ['array<non-falsy-string,mixed>', 'class'=>'string'],
|
||||
'get_current_user' => ['string'],
|
||||
'get_debug_type' => ['string', 'value'=>'mixed'],
|
||||
'get_declared_classes' => ['list<class-string>'],
|
||||
|
@ -957,8 +957,8 @@ return [
|
||||
'new' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'],
|
||||
],
|
||||
'get_class_methods' => [
|
||||
'old' => ['list<string>|null', 'object_or_class'=>'mixed'],
|
||||
'new' => ['list<string>', 'object_or_class'=>'object|class-string'],
|
||||
'old' => ['list<non-falsy-string>|null', 'object_or_class'=>'mixed'],
|
||||
'new' => ['list<non-falsy-string>', 'object_or_class'=>'object|class-string'],
|
||||
],
|
||||
'get_headers' => [
|
||||
'old' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'?resource'],
|
||||
|
@ -10677,8 +10677,8 @@ return [
|
||||
'get_called_class' => ['class-string'],
|
||||
'get_cfg_var' => ['string|false', 'option'=>'string'],
|
||||
'get_class' => ['class-string', 'object='=>'object'],
|
||||
'get_class_methods' => ['list<string>|null', 'object_or_class'=>'mixed'],
|
||||
'get_class_vars' => ['array<string,mixed>', 'class'=>'string'],
|
||||
'get_class_methods' => ['list<non-falsy-string>|null', 'object_or_class'=>'mixed'],
|
||||
'get_class_vars' => ['array<non-falsy-string,mixed>', 'class'=>'string'],
|
||||
'get_current_user' => ['string'],
|
||||
'get_declared_classes' => ['list<class-string>'],
|
||||
'get_declared_interfaces' => ['list<class-string>'],
|
||||
|
Loading…
Reference in New Issue
Block a user