php 8.1 deprecations
-
Hi again, when using php8.1 some deprecation warnings still pop up.
1. Everytime a setting input in the backend is left blank, i think an easy check would do:[09-Sep-2023 11:18:53 UTC] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in src\app\public\wp-content\plugins\ti-woocommerce-wishlist\includes\viewsection.helper.php on line 515
2. In the get_by_share_key function if no $share_key is provided. i guess a check if $share_key is empty and if so return array(). fixes it.
[09-Sep-2023 11:28:06 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in src\app\public\wp-content\plugins\ti-woocommerce-wishlist\includes\wishlist.class.php on line 314
As always thanks for making such a great plugin! The issues i posted are more like small improvments/nice-to-haves but i like clean plugins ??
All the best,
Paul
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘php 8.1 deprecations’ is closed to new replies.