You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In my project, I only use DTOs. Before Symfony 7.3, with the following example, I retrieved the object with the property $users filled with UserDTOs in my processor. Since Symfony 7.3, and without any other changes on my part, I only retrieve an array of IRIs.
phpdocumentor/reflection-docblock is still installed.
Let me know if you want a reproducer.
How to reproduce
DTO :
#[ApiResource(
shortName: 'Location',
operations: [
new Post(
uriTemplate: '/locations',
),
],
openapi: new Operation(
tags: ['Location']
),
processor: LocationProcessor::class,
stateOptions: new Options(entityClass: Location::class),
)]
readonly class LocationInputDto
{
public function __construct(
#[Assert\NotBlank]
public ?string $name = null,
/** @var UserDto[] */
public ?array $users = [],
) {
}
}