Skip to content

Commit b3a1024

Browse files
crlcutshafer
authored andcommitted
Fix the issue where defaults has a higher priority then the attributes (LaravelCollective#509)
1 parent 623a150 commit b3a1024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function style($url, $attributes = [], $secure = null)
9494
{
9595
$defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet'];
9696

97-
$attributes = array_merge($attributes, $defaults);
97+
$attributes = array_merge($defaults, $attributes);
9898

9999
$attributes['href'] = $this->url->asset($url, $secure);
100100

0 commit comments

Comments
 (0)