Merge pull request #442 from izniburak/5.5-array_merge
+ operator doesn't merge. Replaced by array_merge method.
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -94,7 +94,7 @@ class HtmlBuilder
|
||||
{
|
||||
$defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet'];
|
||||
|
||||
$attributes = $attributes + $defaults;
|
||||
$attributes = array_merge($attributes, $defaults);
|
||||
|
||||
$attributes['href'] = $this->url->asset($url, $secure);
|
||||
|
||||
@@ -132,7 +132,7 @@ class HtmlBuilder
|
||||
{
|
||||
$defaults = ['rel' => 'shortcut icon', 'type' => 'image/x-icon'];
|
||||
|
||||
$attributes = $attributes + $defaults;
|
||||
$attributes = array_merge($attributes, $defaults);
|
||||
|
||||
$attributes['href'] = $this->url->asset($url, $secure);
|
||||
|
||||
|
||||
Reference in new issue
Block a user