PHP 8.1 issue – Optional parameter declared before required parame
-
I am running WordPress 6.8.3, WooCommerce 10.2.2, WooCommerce Square 5.1.0 on PHP 8.1.33 and I get the following PHP deprecation warning:
PHP Deprecated: Optional parameter $location_ids declared before required parameter $start_time is implicitly treated as a required parameter in /wp-content/plugins/woocommerce-square/includes/Gateway/API.php on line 734The line is:
public function search_orders( $location_ids = array(), $start_time, $limit = 100, $cursor = '', $end_time = '' )$start_time should have a default value or moved in front of $location_ids.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.