File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2856,6 +2856,7 @@ protected function processAdditional()
2856
2856
T_NAME_QUALIFIED => T_NAME_QUALIFIED ,
2857
2857
T_TYPE_UNION => T_TYPE_UNION ,
2858
2858
T_BITWISE_OR => T_BITWISE_OR ,
2859
+ T_BITWISE_AND => T_BITWISE_AND ,
2859
2860
T_ARRAY => T_ARRAY ,
2860
2861
T_CALLABLE => T_CALLABLE ,
2861
2862
T_SELF => T_SELF ,
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ class Foo
52
52
public function __construct (private readonly bool $ constructorPropertyPromotion )
53
53
{
54
54
}
55
+
56
+ /* testReadonlyConstructorPropertyPromotionWithReference */
57
+ public function __construct (private ReadOnly bool &$ constructorPropertyPromotion ) {}
55
58
}
56
59
57
60
$ anonymousClass = new class () {
Original file line number Diff line number Diff line change @@ -139,6 +139,10 @@ public function dataReadonly()
139
139
'/* testReadonlyConstructorPropertyPromotion */ ' ,
140
140
'readonly ' ,
141
141
],
142
+ [
143
+ '/* testReadonlyConstructorPropertyPromotionWithReference */ ' ,
144
+ 'ReadOnly ' ,
145
+ ],
142
146
[
143
147
'/* testReadonlyPropertyInAnonymousClass */ ' ,
144
148
'readonly ' ,
You can’t perform that action at this time.
0 commit comments