D
Size: a a a
D
VS
VS
VS
D
The PropertyInfo component was not able to guess the type of App\\Utils\\ApiResponse::$data. You may need to add a `@var annotation or use @OA\\Property(type=\"\") to make its type explicit.. Да, я могу переопределить $data в своём классе, но тогда NelmioApiDocBundle начинает ругаться на другие публичные свойства в родительском классе JsonResponse. Например, на statusTexts, которое объявлено в Response, от которого наследуется JsonResponse. Как сделать правильно?AM
D
public function getList(): Response
{
$serializer = new Serializer([$this->languageNormalizer]);
$languages = $this->languagesService->getAvailable();
$items = $serializer->normalize($languages);
return new ApiResponse($items);
}