From df6fdb99d7124280d883e98284f2fbef0abb6377 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Wed, 29 Jun 2022 18:22:46 +0200 Subject: [PATCH] Fix return type of ReflectionNamedType::getName() Fixes #8167 --- stubs/Reflection.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Reflection.phpstub b/stubs/Reflection.phpstub index 7f453ba7bc2..cfbe3ba2375 100644 --- a/stubs/Reflection.phpstub +++ b/stubs/Reflection.phpstub @@ -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 {} }