Skip to content

Commit

Permalink
Update OrdersAutosuggest.php
Browse files Browse the repository at this point in the history
Ensure PHP 7.4 support.
  • Loading branch information
BrookeDot authored Feb 13, 2025
1 parent e007853 commit fcd6276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Feature/WooCommerce/OrdersAutosuggest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class OrdersAutosuggest {
*
* @param WooCommerce|null $woocommerce WooCommerce feature object instance
*/
public function __construct( WooCommerce|null $woocommerce = null ) {
public function __construct( $woocommerce = null ) {
$this->index = Indexables::factory()->get( 'post' )->get_index_name();
$this->woocommerce = $woocommerce ?
$woocommerce :
Expand Down

0 comments on commit fcd6276

Please sign in to comment.