@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | ?array $attributes = null, |
79 | 79 | ?string $tag = Html5::TAG_A |
80 | 80 | ): ButtonComponent { |
81 | - $attributes ??= []; |
|
81 | + $attributes ??= []; |
|
82 | 82 | $attributes[Html5::ATTR_HREF] = new Attribute(Html5::ATTR_HREF, $url); |
83 | 83 | |
84 | 84 | if ($icon) { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | ): ButtonComponent { |
120 | 120 | $url = $this->urlGenerator->createFromName($urlName, ...$urlArgs); |
121 | 121 | |
122 | - $attributes ??= []; |
|
122 | + $attributes ??= []; |
|
123 | 123 | $attributes[Html5::ATTR_HREF] = new Attribute(Html5::ATTR_HREF, $url); |
124 | 124 | |
125 | 125 | if ($icon) { |
@@ -122,7 +122,7 @@ |
||
122 | 122 | */ |
123 | 123 | public static function isEqual(?array $attributes, ?array $attributes2): bool |
124 | 124 | { |
125 | - $attributes ??= []; |
|
125 | + $attributes ??= []; |
|
126 | 126 | $attributes2 ??= []; |
127 | 127 | |
128 | 128 | if (count($attributes) != count($attributes2)) { |