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:
parent
f4b48ab625
commit
e9073eb059
@ -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 {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user