Skip to content

Commit

Permalink
Fixes vimeo#7810
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hargreaves committed Oct 16, 2022
1 parent 9218017 commit ea39a6e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/Php80.phpstub
Expand Up @@ -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;
Expand Down
15 changes: 15 additions & 0 deletions stubs/Reflection.phpstub
Expand Up @@ -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
Expand Down Expand Up @@ -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 {}
}

/**
Expand Down

0 comments on commit ea39a6e

Please sign in to comment.