Skip to content

Commit

Permalink
Fix return type of ReflectionNamedType::getName()
Browse files Browse the repository at this point in the history
Fixes #8167
  • Loading branch information
BenMorel committed Jun 29, 2022
1 parent 4bc803d commit df6fdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/Reflection.phpstub
Expand Up @@ -142,7 +142,7 @@ class ReflectionNamedType extends ReflectionType
public function getName(): string {}

/**
* @psalm-assert-if-false class-string $this->getName()
* @psalm-assert-if-false class-string|'self'|'static' $this->getName()
*/
public function isBuiltin(): bool {}
}

0 comments on commit df6fdb9

Please sign in to comment.