From 0f7bafbd2acd4cdb2118c2a6105a6b2aa9dacb13 Mon Sep 17 00:00:00 2001
From: jxlwqq <jxlwqq@gmail.com>
Date: Tue, 2 Nov 2021 15:52:31 +0800
Subject: [PATCH] fix css error. close #5456

---
 src/Traits/HasAssets.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Traits/HasAssets.php b/src/Traits/HasAssets.php
index 69d811b218..190e9a77f9 100644
--- a/src/Traits/HasAssets.php
+++ b/src/Traits/HasAssets.php
@@ -112,11 +112,11 @@ public static function css($css = null, $minify = true)
         static::ignoreMinify($css, $minify);
 
         if (!is_null($css)) {
-            return self::$css = array_merge((array) $css, self::$css);
+            return self::$css = array_merge(self::$css, (array) $css);
         }
 
         if (!$css = static::getMinifiedCss()) {
-            $css = array_merge(static::baseCss(), static::$css);
+            $css = array_merge(static::$css, static::baseCss());
         }
 
         $css = array_filter(array_unique($css));