Skip to content

Commit

Permalink
Fix the issue where defaults has a higher priority then the attributes (
Browse files Browse the repository at this point in the history
  • Loading branch information
crlcu authored and tshafer committed Apr 9, 2018
1 parent 623a150 commit b3a1024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HtmlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function style($url, $attributes = [], $secure = null)
{
$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);

Expand Down

0 comments on commit b3a1024

Please sign in to comment.