Skip to content

Commit

Permalink
fix css error. close #5456
Browse files Browse the repository at this point in the history
  • Loading branch information
jxlwqq committed Nov 2, 2021
1 parent 2a6ad09 commit 0f7bafb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/HasAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0f7bafb

Please sign in to comment.