1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

doesn't infer empty for ReflectionClass::getAttributes without params

This commit is contained in:
orklah 2021-12-16 23:39:23 +01:00
parent f4b48ab625
commit e9073eb059

View File

@ -51,7 +51,7 @@ class ReflectionClass implements Reflector {
* @since 8.0
* @template TClass as object
* @param class-string<TClass>|null $name
* @return array<ReflectionAttribute<TClass>>
* @return (TClass is empty ? array<ReflectionAttribute<object>> : array<ReflectionAttribute<TClass>>)
*/
public function getAttributes(?string $name = null, int $flags = 0): array {}
}