Skip to content

Commit 25260f7

Browse files
committed
Add argument to attributes
This currently fails because we can't compile an attribute twice -- same issue as with constructor property promotion.
1 parent 39b8e09 commit 25260f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/tests/attributes/014_class_const_group.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Attributes can be applied to groups of class constants
55

66
class C
77
{
8-
#[A]
8+
#[A(1)]
99
public const A = 1, B = 2;
1010
}
1111

Zend/tests/attributes/015_property_group.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Attributes can be applied to groups of properties
55

66
class C
77
{
8-
#[A]
8+
#[A(1)]
99
public $x, $y;
1010
}
1111

0 commit comments

Comments
 (0)