From e9073eb0596e5d83fcf5e2e850800d1ea0086e7d Mon Sep 17 00:00:00 2001 From: orklah Date: Thu, 16 Dec 2021 23:39:23 +0100 Subject: [PATCH] doesn't infer empty for ReflectionClass::getAttributes without params --- stubs/Reflection.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Reflection.phpstub b/stubs/Reflection.phpstub index 11dcf4537..f569ebfe8 100644 --- a/stubs/Reflection.phpstub +++ b/stubs/Reflection.phpstub @@ -51,7 +51,7 @@ class ReflectionClass implements Reflector { * @since 8.0 * @template TClass as object * @param class-string|null $name - * @return array> + * @return (TClass is empty ? array> : array>) */ public function getAttributes(?string $name = null, int $flags = 0): array {} }