Skip to content

6.0.2

Choose a tag to compare

@aporat aporat released this 19 Apr 17:09
· 154 commits to main since this release

Fixed

  • AppleAppStore\ServerNotificationSubtype could not be autoloaded in 6.0.0: the enum declared
    namespace ReceiptValidator\AppleAppStore but lived at
    src/AppleAppStore/JWT/ServerNotificationSubtype.php, so any App Store Server Notification V2
    carrying a subtype failed with a class-not-found error inside
    ServerNotification::__construct(). The file now lives at
    src/AppleAppStore/ServerNotificationSubtype.php; the fully qualified name is unchanged.

Changed

  • AppleAppStore\Transaction now extends AbstractTransaction instead of AbstractResponse. As a
    result getTransactionId(), getProductId() and getQuantity() are inherited and now return
    non-nullable string, string and int (previously ?string, ?string, ?int), the
    setTransactionId(), setProductId() and setQuantity() setters became available, and the class
    no longer exposes AbstractResponse::getTransactions(). getEnvironment() / setEnvironment()
    are kept.

Notes written from the code diff for this release; see CHANGELOG.md.