From b3a10245c791a211e5f8ec37117f4549cd22aabe Mon Sep 17 00:00:00 2001 From: Adrian Crisan Date: Mon, 9 Apr 2018 17:09:32 +0300 Subject: [PATCH] Fix the issue where defaults has a higher priority then the attributes (#509) --- src/HtmlBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index ec95354..17da19f 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -94,7 +94,7 @@ class HtmlBuilder { $defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet']; - $attributes = array_merge($attributes, $defaults); + $attributes = array_merge($defaults, $attributes); $attributes['href'] = $this->url->asset($url, $secure);