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

Fixed Implicitly marking parameter $woocommerce as nullable is deprecated warning with PHP 8.4 #4087

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

BrookeDot
Copy link
Contributor

Description of the Change

Updates OrdersAutosuggest.php to allow $woocommece to be nullable explicitly.

I manually tested this fix with PHP 8.1 > 8.4

Closes #4086

How to test the Change

Update to PHP 8.4 to receive the error, then apply the change and it should go away.

It would be good to test this change with WooCommerce installed

Changelog Entry

Fixed - PHP 8.4: Implicitly marking parameter $woocommerce as nullable is deprecated (#4086)

Credits

Props @BrookeDot

Checklist:

This explicitly allows for WooCommerce to be nullable. 

I manually tested this fix with PHP 8.1 > 8.4

Fixes 10up#4086

see:
https://www.php.net/manual/en/migration84.deprecated.php
Ensure PHP 7.4 support.
@felipeelia felipeelia added this to the 5.2.0 milestone Feb 13, 2025
@felipeelia felipeelia merged commit 283983d into 10up:develop Feb 13, 2025
9 of 21 checks passed
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.

BUG: Fix Nullable Deprecated in PHP 8.4
2 participants