Skip to content

Commit

Permalink
make method names non-falsy-string
Browse files Browse the repository at this point in the history
  • Loading branch information
schlndh authored and ondrejmirtes committed May 31, 2024
1 parent 6007c11 commit 012a77c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3299,7 +3299,7 @@
'get_called_class' => ['class-string'],
'get_cfg_var' => ['mixed', 'option_name'=>'string'],
'get_class' => ['class-string', 'object='=>'object'],
'get_class_methods' => ['list<string>', 'class'=>'mixed'],
'get_class_methods' => ['list<non-falsy-string>', 'class'=>'mixed'],
'get_class_vars' => ['array', 'class_name'=>'string'],
'get_current_user' => ['string'],
'get_declared_classes' => ['list<class-string>'],
Expand Down
5 changes: 5 additions & 0 deletions stubs/ReflectionMethod.stub
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ class ReflectionMethod
*/
public $class;

/**
* @var non-falsy-string
*/
public $name;

}

0 comments on commit 012a77c

Please sign in to comment.