It seems like \Shapin\Stripe\Model\Cou...mArray($data['coupon']) of type object<self> is incompatible with the declared type object<Shapin\Stripe\Model\Coupon\Coupon> of property $coupon.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
46
3
$model->customer = $data['customer'];
47
3
$model->endAt = isset($data['end']) ? new \DateTimeImmutable('@'.$data['end']) : null;
48
3
$model->startAt = new \DateTimeImmutable('@'.$data['start']);
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..