-
Notifications
You must be signed in to change notification settings - Fork 40
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
Creation of dynamic property deprecation warnings on PHP 8.2 #155
Comments
Thanks Henry, We're looking to update the PHP library to support v8+. We'll update this ticket once this is done |
I also see deprecation warnings for PHP8.2 which I am running in a development version specifically in order to catch these in my code prior to Debian Bookwork release which is now only a couple of months away which will come with PHP8.2 as standard. (8.2 is already a quarter of the way through as current version of PHP, and all version 7s are now well past their end-of-life dates). In particular, the assignment to customer_bank_accounts in Client.php in method customerBankAccounts raises a deprecation notice.. The biggest change in my code, and probably will be in yours too, is the requirement for all class properties on non-anonymous classes to be explicitly declared (or an exception marked for the whole class). Though they are "only" warnings at this stage, I catch all PHP notices and send myself an alert, so it is a nuisance to keep getting notifications about third-party code that I can't do much about. Anyway, just putting this here so I hear from GitHub when you update this ticket. |
any movement on this? |
Debian 12 Bookworm is now out, where PHP8.2 is the standard install. PHP8.1 drops out of active support in only 1 month. This problem is starting to become urgent. |
A temporary solution is to use the attached patch with the package cweagans/composer-patches : {
"name": "acme/demo",
"version": "1.0.0",
"require": {
"gocardless/gocardless-pro": "^5.3.0",
"cweagans/composer-patches": "^1.7"
},
"config": {
"allow-plugins": {
"cweagans/composer-patches": true
}
},
"extra": {
"patches": {
"gocardless/gocardless-pro": {
"Fix issue gocardless/gocardless-pro #155": "./gocardless-pro-php-issue-155.patch"
}
},
"composer-exit-on-patch-failure": true
}
} By adding this to your composer.json, it will automatically patch gocardless-pro-php to remove the warnings |
PHP 8.1 is now out of active support and 8.3 has been released. Is there any update on this issue? |
Is this likely to be fixed any time soon? We're at a point where we need to fork and maintain our own version or make infrastructure changes to ignore logs from these deprecations. |
I contacted GoCardless support yesterday, received only the following: The Engineering team is aware of this issue and has it on their to-do list. Sadly, we are not able to confirm the timeline for when this will be resolved. ¯_(ツ)_/¯ |
This library seems to be hitting this deprecation warning: https://php.watch/versions/8.2/dynamic-properties-deprecated
Steps to repro:
Results:
The text was updated successfully, but these errors were encountered: