-
Notifications
You must be signed in to change notification settings - Fork 21
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
PHP 8.4 compatibility #2647
Comments
Additional problems to resolve in included packages:
This is resolved in 5.4.35 although we can consider updating to a newer version 5.4.47 or if there are no additional blockers one of the 6.4.x or 7.1.x versions.
When updating the
Not fixed yet, reported issue googleapis/google-api-php-client#2636
PHP 8.4 support was added in 7.8.2
Fixed in 1.43.0
PHP 8.4 compatibility is fixed in 4.2.3 Note that WC 9.5 is moving to an independent container, but the composer dependency hasn't been removed yet.
Resolved here: Automattic/jetpack#40147 WooCommerce 9.4.1 deprecations is being covered here: woocommerce/woocommerce#52081 deprecation messages
Action scheduler deprecations within WooCommerce have been resolved here: woocommerce/action-scheduler#1205
Fixed in 9.6.18
|
After updating Guzzle we also need to resolve the following error:
The following string is not prefixed:
We'll need to add it as a direct replacement here: https://github.com/woocommerce/google-listings-and-ads/blob/2.8.7/bin/prefix-vendor-namespace.php#L119-L132 |
For the package This works fine for the package, however it's dependent on several other packages which means we are stuck on older versions, because they updated minimum PHP versions:
The List of issues with `google/gax` that have not been fixed
|
For the package Because PHP 7.4 support was dropped we are stuck on version |
Describe the issue:
With the upcoming release of PHP 8.4 there is another set of changes that are marked as deprecated. In order to continue preventing deprecation notices we will need to resolve these for any sites that switch to PHP 8.4
The following deprecations in PHP 8.4 are the ones we should address:
Implicitly nullable parameter declarations deprecated
There are several occurrences of this in the code where a non nullable type is declared and the default is set to null. There might be a better regex, but I found several occurrences by searching for
function.*= null
.Some examples include:
Deprecate proprietary CSV escaping mechanism
We use this in the following code: https://github.com/woocommerce/google-listings-and-ads/blob/2.8.6/src/DB/Table/BudgetRecommendationTable.php#L105
We should map to a function where we can pass the parameters to
str_getcsv
:Expected behavior:
No deprecation messages when running the extension with PHP 8.4. Also to run the unit tests with PHP 8.4
The text was updated successfully, but these errors were encountered: