Skip to content

Commit

Permalink
Improve Reflection stubs
Browse files Browse the repository at this point in the history
ReflectionParameter::getPosition(): non-negative-int
ReflectionProperty non-empty-string $name
ReflectionMethod non-empty-string $name
  • Loading branch information
vudaltsov committed Aug 8, 2023
1 parent 3098e51 commit 4e934a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dictionaries/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10712,7 +10712,7 @@
'ReflectionParameter::getDefaultValue' => ['mixed'],
'ReflectionParameter::getDefaultValueConstantName' => ['?string'],
'ReflectionParameter::getName' => ['string'],
'ReflectionParameter::getPosition' => ['int'],
'ReflectionParameter::getPosition' => ['int<0, max>'],
'ReflectionParameter::getType' => ['?ReflectionType'],
'ReflectionParameter::hasType' => ['bool'],
'ReflectionParameter::isArray' => ['bool'],
Expand Down
4 changes: 2 additions & 2 deletions stubs/Reflection.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class ReflectionFunction extends ReflectionFunctionAbstract
class ReflectionProperty implements Reflector
{
/**
* @var string
* @var non-empty-string
* @readonly
*/
public $name;
Expand Down Expand Up @@ -539,7 +539,7 @@ class ReflectionProperty implements Reflector
class ReflectionMethod extends ReflectionFunctionAbstract
{
/**
* @var string
* @var non-empty-string
* @readonly
*/
public $name;
Expand Down

0 comments on commit 4e934a7

Please sign in to comment.