-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
Description
Description
Serializer (denormalization specifically) does not support non-empty-list<>
.
I have to change to list<>
and I'm forced to add in code that uses this data structure non-empty-list<>
.
Can you add support please?
Example
Now:
// In Data Structure
/**
* @var list<Payment> $payments
*/
public array $payments;
// I have to write phpDoc in code
/** @var non-empty-list<Payment> $payments */
$payments = $data->payments;
After adding support:
// In Data Structure
/**
* @var non-empty-list<Payment> $payments
*/
public array $payments;
mdeboer