Accessing label on the interface KunicMarko\SonataAnnotat...ion\AnnotationInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
25
}
26
}
27
28
return $properties;
29
}
30
31
public function getFormats(\ReflectionClass $class): array
32
{
33
if ($annotation = $this->getClassAnnotation($class, ExportFormats::class)) {
Accessing formats on the interface KunicMarko\SonataAnnotat...ion\AnnotationInterface suggest that you code against a concrete implementation. How about adding an instanceof check?