Skip to content

4.1.0

Choose a tag to compare

@Stafox Stafox released this 13 Oct 09:52
d347d8f

Changed

  • Breaking: Minimum PHP version raised from ^7.2.5 to ^7.3 (PHP 7.2 is end of life).
    (#144)
  • Breaking: google/apiclient constraint raised from ^2.0 to ^2.10.
    (#153)
  • Google Play classes migrated from the legacy underscore class names to the namespaced ones:
    GooglePlay\Validator::__construct() and GooglePlay\Acknowledger::__construct() now type-hint
    Google\Service\AndroidPublisher instead of Google_Service_AndroidPublisher, and the
    acknowledge requests use Google\Service\AndroidPublisher\ProductPurchasesAcknowledgeRequest /
    SubscriptionPurchasesAcknowledgeRequest. The legacy names remain class aliases in
    google/apiclient-services >= 0.200, so existing code constructing
    Google_Service_AndroidPublisher keeps working. Thanks to @yyeltsyn
    (#153)
  • Breaking: Native return types added: Amazon\Response::getReceipt(): array,
    Amazon\Response::getPurchases(): array, Amazon\Validator::validate(): Response,
    iTunes\AbstractResponse::getPurchases(): array, getLatestReceiptInfo(): array,
    getPendingRenewalInfo(): array (and the same three on iTunes\ResponseInterface, so custom
    implementations must declare them), iTunes\PendingRenewalInfo::isInGracePeriod(): bool and
    offsetExists($key): bool.
  • composer.json: phpunit/phpunit dev dependency raised from ^8.0 to ^9.0.
  • Note: the original release notes mention only the Google namespace migration and the
    google/apiclient:^2.10 requirement; the PHP 7.2 drop and the new return types were not listed.

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