Skip to content

Commit

Permalink
Merge pull request #9053 from kukulich/patch-6
Browse files Browse the repository at this point in the history
Fix `ReflectionFunctionAbstract::getExtensionName()` stub
  • Loading branch information
orklah committed Jan 3, 2023
2 parents 3560ef7 + cbea438 commit 0ec0fcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions stubs/Php80.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ abstract class ReflectionFunctionAbstract implements Reflector
* @psalm-pure
*/
public function getFileName(): string|false {}

/**
* @return non-empty-string|false
*
* @psalm-pure
*/
public function getExtensionName(): string|false {}
}

/** @psalm-immutable */
Expand Down
4 changes: 2 additions & 2 deletions stubs/Reflection.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ abstract class ReflectionFunctionAbstract implements Reflector
public function getExtension(): ?ReflectionExtension {}

/**
* @return non-empty-string
* @return non-empty-string|false
*
* @psalm-pure
*/
public function getExtensionName(): string {}
public function getExtensionName() {}

/**
* @return non-empty-string|false
Expand Down

0 comments on commit 0ec0fcf

Please sign in to comment.