Skip to content

4.0.0

Choose a tag to compare

@aporat aporat released this 04 Aug 20:34

Changed

  • Breaking: Minimum PHP version raised from ^7.1 to ^7.2.5. Thanks to @leemcd56
    (#125)
  • Guzzle 7 is now supported: guzzlehttp/guzzle constraint changed from ^6.3 to ^6.3|^7.0.
    (#125)
  • Breaking: iTunes\Validator::ENDPOINT_PRODUCTION and ENDPOINT_SANDBOX no longer include the
    /verifyReceipt path (now https://buy.itunes.apple.com and https://sandbox.itunes.apple.com);
    the path is passed on the POST request instead (needed because Guzzle 7 rejects a null request
    URI). Code that compares getEndpoint() against the old full URLs or passes the full URL to the
    constructor will break.
  • Breaking: iTunes\Validator::setReceiptData() and setSharedSecret() now declare ?string
    parameter types.
  • Breaking: Amazon\Validator::setUserId(), setReceiptId() and setDeveloperSecret() now
    declare ?string parameter types, and getDeveloperSecret() declares a ?string return type.
  • Breaking: Amazon\PurchaseItem getters gained return types: getRawResponse(): ?array,
    getQuantity(): int, getProductId(): string, getTransactionId(): string, getPurchaseDate(): Carbon, getCancellationDate(): ?Carbon, getRenewalDate(): ?Carbon.
  • Breaking: Protected properties in Amazon\Validator, Amazon\Response and
    Amazon\PurchaseItem lost their leading underscore (e.g. $_endpoint is now $endpoint,
    $_response is now $raw_data); subclasses referencing the old names must be updated. The unused
    Amazon\Validator::$_product_id property was removed.
  • Note: the original release notes said "PHP 7.2+ is now required"; the actual composer constraint
    is ^7.2.5. They did not mention the endpoint-constant or type-hint changes.

Fixed

  • Amazon endpoint constants lost their trailing slash and the request path gained a leading slash in
    this release, which broke Amazon validation; see 4.0.1.

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