1
0
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:
kkmuffme 2023-05-17 22:09:37 +02:00
parent 69589ebe83
commit e23db18f6b
3 changed files with 6 additions and 6 deletions

View File

@ -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>'],

View File

@ -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'],

View File

@ -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>'],