Skip to content

Commit

Permalink
Merge branch 'main' into check-stable-tag-on-new-release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf committed Jul 24, 2024
2 parents 6fc5693 + 537788d commit bffe612
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,16 @@ public function add_wpc_product_bundles_classes ( $classes, $document_type, $ord
*
* @param string $classes CSS classes for item row (tr)
* @param ?string $document_type PDF Document type
* @param object $order order
* @param ?object $order order
* @param int|string $item_id WooCommerce Item ID
*
* @return string
*/
public function add_yith_product_bundles_classes( string $classes, ?string $document_type, object $order, $item_id = 0 ): string {
public function add_yith_product_bundles_classes( string $classes, ?string $document_type, ?object $order, $item_id = 0 ): string {
if ( empty( $order ) ) {
return $classes;
}

if ( ! $order instanceof \WC_Abstract_Order ) {
return $classes;
}
Expand Down

0 comments on commit bffe612

Please sign in to comment.