Skip to content

Commit

Permalink
Merge pull request #8931 from VincentLanglet/reflectionClass2
Browse files Browse the repository at this point in the history
Fix getParentClass stub
  • Loading branch information
orklah committed Dec 18, 2022
2 parents b6faa3e + 50cf28f commit c529709
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stubs/Reflection.phpstub
Expand Up @@ -214,8 +214,12 @@ class ReflectionClass implements Reflector {
*/
public function newInstanceWithoutConstructor(): object {}

/** @psalm-pure */
public function getParentClass(): ?ReflectionClass {}
/**
* @psalm-pure
*
* @return ReflectionClass|false
*/
public function getParentClass() {}

/**
* @param ReflectionClass|class-string $class
Expand Down

0 comments on commit c529709

Please sign in to comment.