1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add missing properties to stubs/Reflection.phpstub

This should fix the now failing tests as the properties got removed from
the autogenerated property map.
This commit is contained in:
Christian Schiffler 2022-07-04 11:14:34 +02:00
parent 631936c678
commit ce4ba69e70

View File

@ -69,6 +69,18 @@ class ReflectionFunction implements Reflector
class ReflectionProperty implements Reflector
{
/**
* @var string
* @readonly
*/
public $name;
/**
* @var class-string
* @readonly
*/
public $class;
/**
* @since 8.0
* @template TClass as object
@ -92,6 +104,18 @@ class ReflectionProperty implements Reflector
class ReflectionMethod implements Reflector
{
/**
* @var string
* @readonly
*/
public $name;
/**
* @var class-string
* @readonly
*/
public $class;
/**
* @since 8.0
* @template TClass as object
@ -105,6 +129,25 @@ class ReflectionMethod implements Reflector
class ReflectionClassConstant implements Reflector
{
/**
* @var string
* @readonly
*/
public $name;
/**
* @var class-string
* @readonly
*/
public $class;
/**
* @var bool
* @since 8.1
* @readonly
*/
public $isFinal;
/**
* @since 8.0
* @template TClass as object
@ -118,6 +161,12 @@ class ReflectionClassConstant implements Reflector
* @psalm-immutable
*/
class ReflectionParameter implements Reflector {
/**
* @var string
* @readonly
*/
public $name;
/**
* @psalm-assert-if-true ReflectionType $this->getType()
*/