Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve 'creation of dynamic propery' on Core\ApiClient #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fefas
Copy link

@fefas fefas commented Oct 27, 2023

Resolve issues exposed by deprecated messages introduced on PHP8.2 which indicate future breaking changes on the next major release cycle.

  • Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$error_on_idempotency_conflict is deprecated in /<secret_project>/vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 28
  • Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$http_client is deprecated in /<secret_project>/vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 27

…Client

Resolve issues exposed by deprecated messages introduced on PHP8.2 which indicate future breaking changes on the next major release cycle.

- Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$error_on_idempotency_conflict is deprecated in /<secret_project>/vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 28
- Deprecated: Creation of dynamic property GoCardlessPro\Core\ApiClient::$http_client is deprecated in /<secret_project>/vendor/gocardless/gocardless-pro/lib/Core/ApiClient.php on line 27
@@ -15,6 +15,9 @@
*/
class ApiClient
{
public $http_client;
public $error_on_idempotency_conflict;
Copy link
Author

Choose a reason for hiding this comment

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

It could be done via construct promoted property as well. Let me know if this is the wanted approach so I can update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant