Skip to content

Conversation

@tomasz-pazdziurek-cko
Copy link

@tomasz-pazdziurek-cko tomasz-pazdziurek-cko commented Jan 12, 2026

BREAKING CHANGE:

This PR has been automatically generated by fountain. Please review it and merge it if everything is fine.

Caution

This is a BREAKING CHANG.
The SDK supports PHP version 8.0 and newer. Versions lower than 8.0 are not supported any longer!

This change addresses a couple of deprecated functionality warnings:

1. Set jsonSerialize() return type explicitly

  • Since 8.2 - JsonSerializable requires the implementations to explicitly return the returned type.
Deprecated: Return type of ProcessOut\Invoice::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

2. Remove curl_close() invocations - it's being done automatically during GC now.

  • Since 8.0 - curl_close() has no effect and is deprecated since 8.5.
Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0

3. Add "?" explicit nullable type operator when applicable.

  • Since 8.0 - added support for "nullable" types - nullability should be explicitly expressed using the ? operator.
Deprecated: ProcessOut\Exceptions\AuthenticationException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead

4. Remove non-existent endpoints and related resources

  • /activities
  • /coupons
  • /customers/:id/subscriptions
  • /plans
  • /subscriptions
  • /supervised-projects

@tomasz-pazdziurek-cko tomasz-pazdziurek-cko requested a review from a team as a code owner January 12, 2026 09:17
@tomasz-pazdziurek-cko tomasz-pazdziurek-cko changed the title BREAKING CHANGE feat: remove deprecated functionality BREAKING CHANGE feat: remove deprecated functionality and drop PHP versions lower than 8.0 support Jan 12, 2026
@tomasz-pazdziurek-cko tomasz-pazdziurek-cko changed the title BREAKING CHANGE feat: remove deprecated functionality and drop PHP versions lower than 8.0 support BREAKING CHANGE feat: remove deprecated functionality and drop PHP unsupported version compatibility Jan 12, 2026
@tomasz-pazdziurek-cko
Copy link
Author

https://www.php.net/supported-versions.php

As of 2026-01-12 09:30 UTC, "PHP: Supported Versions" look as below (expand):

PHP: Supported Versions image

As we can see, version 8.0 is no longer supported, since the end of 2023.
Dropping support for no longer supported versions of the language seems reasonable from our point of view and lets us keep our SDKs up-to-date. We do not have plans or resources to keep support for outdated versions of various languages as we would have to be committed to applying patches to overcome potential problems occurring on these outdated versions of the language itself (e.g. potential security vulnerability).

If our SDK works on version lower than specified it's purely coincidental and may stop working in any moment.
We tested this SDK version against unsupported PHP versions 8.0.30 and 8.1.34, but this compatibility shouldn't be taken as granted and we advice to use the SDK with the supported PHP versions only (8.2+ as of today).

@tomasz-pazdziurek-cko tomasz-pazdziurek-cko force-pushed the fix/php-deprecated-functionality branch from f45edde to 9698edd Compare January 13, 2026 08:52
Copy link

@lukasz-k-bieszczad-cko lukasz-k-bieszczad-cko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :D

@tomasz-pazdziurek-cko tomasz-pazdziurek-cko marked this pull request as draft January 13, 2026 10:19
@tomasz-pazdziurek-cko tomasz-pazdziurek-cko force-pushed the fix/php-deprecated-functionality branch from 9698edd to 36fc4fa Compare January 13, 2026 16:01
@tomasz-pazdziurek-cko tomasz-pazdziurek-cko changed the title BREAKING CHANGE feat: remove deprecated functionality and drop PHP unsupported version compatibility feat!: remove deprecated functionality and drop PHP unsupported version compatibility Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants