Skip to content

Commit

Permalink
Solving "Cannot assign null to property Busuu\IosReceiptsApi\Model\Ap…
Browse files Browse the repository at this point in the history
…pStoreReceipt::$cancellationDateMs of type int"
  • Loading branch information
pere-additio committed Aug 10, 2023
1 parent 6e1a40a commit 684c5fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Model/AppStoreReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class AppStoreReceipt
private ?array $pendingRenewalInfos;

/**
* @var int The cancellation date is set when Apple's customer service refunds the user purchase. In that case, consider that the purchase never happened.
* @var int|null The cancellation date is set when Apple's customer service refunds the user purchase. In that case, consider that the purchase never happened.
* There is no way to know if and when the user requested that their subscription should not renew at the end of the term, except from checking the expiration time afterward.
*/
private int $cancellationDateMs;
private ?int $cancellationDateMs;

/**
* @return mixed
Expand Down

0 comments on commit 684c5fb

Please sign in to comment.