+ operator doesn't merge. Replaced by array_merge method.

This commit is contained in:
İzni Burak Demirtaş committed 2017-10-26 10:37:42 +03:00
1 parent 2f6dc39ab3
commit b39f510897
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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);