mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
get_class does not return false
Technically all functions could return false or null when a wrong parameter is provided, but that was undefined behavour in PHP <8 and should not be relied upon.
This commit is contained in:
parent
e90a4b4468
commit
19062e56a3
@ -3720,7 +3720,7 @@ return [
|
||||
'get_call_stack' => [''],
|
||||
'get_called_class' => ['class-string'],
|
||||
'get_cfg_var' => ['string|false', 'option'=>'string'],
|
||||
'get_class' => ['class-string|false', 'object='=>'object'],
|
||||
'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_current_user' => ['string'],
|
||||
|
@ -11058,7 +11058,7 @@ return [
|
||||
'get_call_stack' => [''],
|
||||
'get_called_class' => ['class-string'],
|
||||
'get_cfg_var' => ['string|false', 'option'=>'string'],
|
||||
'get_class' => ['class-string|false', 'object='=>'object'],
|
||||
'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_current_user' => ['string'],
|
||||
|
Loading…
Reference in New Issue
Block a user