Commit 83e981c05b4 for woocommerce

commit 83e981c05b4625e167df6aabc6ca9fd2b8d27e38
Author: Copilot <198982749+Copilot@users.noreply.github.com>
Date:   Thu Jul 16 10:44:23 2026 +0200

    Fix: Mini Cart - stop enqueuing non-existent mini-cart-contents.css (#66651)

    * Initial plan

    * fix: Mini Cart - stop enqueuing non-existent mini-cart-contents.css

    Since #65472 the stylesheet is no longer built (styles were merged into
    the parent mini-cart block). Remove wc-blocks-style-mini-cart-contents
    from MiniCartContents::get_block_type_style() to prevent 301/404
    requests on every page that renders the block.

    * generate baseline

    ---------

    Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
    Co-authored-by: Luigi Teschio <gigitux@gmail.com>

diff --git a/plugins/woocommerce/changelog/fix-mini-cart-contents-css-enqueue b/plugins/woocommerce/changelog/fix-mini-cart-contents-css-enqueue
new file mode 100644
index 00000000000..9e458b607a3
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-mini-cart-contents-css-enqueue
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix Mini-Cart styles.
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/mini-cart/style.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/mini-cart/style.scss
index 3df262d6ee8..aeedf3c8484 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/mini-cart/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/mini-cart/style.scss
@@ -1,4 +1,13 @@
+@import "../../base/components/button/style";
 @import "../../base/components/drawer/style";
+@import "../../base/components/cart-checkout/cart-line-items-table/style";
+@import "../../base/components/cart-checkout/payment-method-icons/style";
+@import "../../base/components/cart-checkout/product-badge/style";
+@import "../../base/components/cart-checkout/product-details/style";
+@import "../../base/components/cart-checkout/product-metadata/style";
+@import "../../base/components/quantity-selector/style";
+@import "../../base/components/product-name/style";
+@import "../../base/components/product-price/style";
 @import "quantity-badge/style";

 .wc-block-mini-cart {
diff --git a/plugins/woocommerce/phpstan-baseline.neon b/plugins/woocommerce/phpstan-baseline.neon
index e15740079ea..4648b53fa8e 100644
--- a/plugins/woocommerce/phpstan-baseline.neon
+++ b/plugins/woocommerce/phpstan-baseline.neon
@@ -51087,12 +51087,6 @@ parameters:
 			count: 1
 			path: src/Blocks/BlockTypes/MiniCartContents.php

-		-
-			message: '#^Parameter \#1 \$arr1 of function array_merge expects array, array\<string\>\|null given\.$#'
-			identifier: argument.type
-			count: 1
-			path: src/Blocks/BlockTypes/MiniCartContents.php
-
 		-
 			message: '#^Method Automattic\\WooCommerce\\Blocks\\BlockTypes\\MiniCartFooterBlock\:\:enqueue_data\(\) has no return type specified\.$#'
 			identifier: missingType.return
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
index 5fef6015faf..695b99e0071 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
@@ -51,7 +51,7 @@ class MiniCartContents extends AbstractBlock {
 	 * @return string[]
 	 */
 	protected function get_block_type_style() {
-		return array_merge( parent::get_block_type_style(), [ 'wc-blocks-packages-style' ] );
+		return [ 'wc-blocks-style', 'wc-blocks-packages-style' ];
 	}

 	/**