The method getAttributes() does not exist on ReflectionMethod. Are you sure you never get this type here, but always one of the subclasses?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The method getAttributes() does not exist on ReflectionClass. It seems like you code against a sub-type of ReflectionClass such as Nette\Reflection\ClassType.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation