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 ReflectionClass stub #8930

Merged
merged 1 commit into from Dec 18, 2022
Merged
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
6 changes: 3 additions & 3 deletions stubs/Reflection.phpstub
Expand Up @@ -23,7 +23,7 @@ class ReflectionClass implements Reflector {
* @psalm-pure
*/
public function getName(): string {}

/** @psalm-pure */
public function isInternal(): bool {}

Expand Down Expand Up @@ -95,7 +95,7 @@ class ReflectionClass implements Reflector {
* @psalm-pure
* @throws ReflectionException
*/
public function getProperty(): ReflectionProperty {}
public function getProperty(string $name): ReflectionProperty {}

/**
* @param int-mask-of<ReflectionProperty::IS_*>|null $filter
Expand Down Expand Up @@ -621,7 +621,7 @@ class ReflectionParameter implements Reflector {
* @readonly
*/
public $name;

/** @return non-empty-string */
public function getName(): string {}

Expand Down