We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df465c commit 3182d12Copy full SHA for 3182d12
lib/PhpParser/Builder/EnumCase.php
@@ -78,8 +78,8 @@ public function getNode(): PhpParser\Node {
78
return new Stmt\EnumCase(
79
$this->name,
80
$this->value,
81
- $this->attributes,
82
- $this->attributeGroups
+ $this->attributeGroups,
+ $this->attributes
83
);
84
}
85
test/PhpParser/Builder/EnumCaseTest.php
@@ -27,6 +27,7 @@ public function testDocComment() {
27
new Stmt\EnumCase(
28
"TEST",
29
null,
30
+ [],
31
[
32
'comments' => [new Comment\Doc('/** Test */')]
33
]
@@ -50,7 +51,6 @@ public function testAddAttribute() {
50
51
52
"ATTR_GROUP",
53
- [],
54
[$attributeGroup]
55
),
56
$node
0 commit comments