forked from woocommerce/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust wc-formatting-functions.php null args deprecations in PHP 8.1
In PHP 8.1 several functions that accept a string as an argument (e.g. str_replace) throw a deprecation notice when null is passed. This commit changes the usages of these functions in wc-formatting-functions.php so that null inputs are converted to empty strings.
- Loading branch information
Showing
1 changed file
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters