mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fixes #7810
This commit is contained in:
parent
921801707d
commit
ea39a6e674
@ -57,6 +57,8 @@ class ReflectionClassConstant
|
||||
|
||||
class Attribute
|
||||
{
|
||||
public int $flags;
|
||||
|
||||
public const TARGET_CLASS = 1;
|
||||
public const TARGET_FUNCTION = 2;
|
||||
public const TARGET_METHOD = 4;
|
||||
|
@ -88,6 +88,16 @@ class ReflectionProperty implements Reflector
|
||||
* @psalm-mutation-free
|
||||
*/
|
||||
public function getType() : ?ReflectionType {}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
public function hasDefaultValue(): bool {}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
public function isPromoted(): bool {}
|
||||
}
|
||||
|
||||
class ReflectionMethod implements Reflector
|
||||
@ -132,6 +142,11 @@ class ReflectionParameter implements Reflector {
|
||||
* @return ($name is null ? array<ReflectionAttribute<object>> : array<ReflectionAttribute<TClass>>)
|
||||
*/
|
||||
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
public function isPromoted(): bool {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user