File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,10 +121,12 @@ public function render(OutputFormat $outputFormat): string
121121 */
122122 public function getArrayRepresentation (): array
123123 {
124- $ result = parent ::getArrayRepresentation ();
125-
126- $ result ['name ' ] = $ this ->name ;
127-
128- return $ result ;
124+ return \array_merge (
125+ [
126+ 'class ' => 'placeholder ' ,
127+ 'name ' => $ this ->name ,
128+ ],
129+ parent ::getArrayRepresentation ()
130+ );
129131 }
130132}
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function parsesArithmeticInFunctions(string $operator): void
6464 self ::assertSame (
6565 [
6666 'class ' => 'CSSFunction ' ,
67+ 'name ' => 'max ' ,
6768 'components ' => [
6869 [
6970 'class ' => 'Size ' ,
@@ -92,7 +93,6 @@ public function parsesArithmeticInFunctions(string $operator): void
9293 ],
9394 ],
9495 'separator ' => ', ' ,
95- 'name ' => 'max ' ,
9696 ],
9797 $ result
9898 );
You can’t perform that action at this time.
0 commit comments