class AdvancedDTO
{
use InputParameterListFromAttributes;
public function __construct(
#[MultipleColors('colors')]
public array $colors,
#[Quantity('quantity')]
public float $quantity,
) {
}
}
but as colors is only a param, and not a param list, it doesn't work.
This seems like a sensible thing to want to do:
but as colors is only a param, and not a param list, it doesn't work.