Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ReflectionFunctionAbstract::getExtensionName() stub #9053

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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