@@ -95,8 +95,8 @@ public function testSingleDefaultValue()
95
95
$ expected [0 ] = [
96
96
'name ' => '$var1 ' ,
97
97
'content ' => '$var1=self::CONSTANT ' ,
98
- 'has_attributes ' => false ,
99
98
'default ' => 'self::CONSTANT ' ,
99
+ 'has_attributes ' => false ,
100
100
'pass_by_reference ' => false ,
101
101
'variable_length ' => false ,
102
102
'type_hint ' => '' ,
@@ -119,8 +119,8 @@ public function testDefaultValues()
119
119
$ expected [0 ] = [
120
120
'name ' => '$var1 ' ,
121
121
'content ' => '$var1=1 ' ,
122
- 'has_attributes ' => false ,
123
122
'default ' => '1 ' ,
123
+ 'has_attributes ' => false ,
124
124
'pass_by_reference ' => false ,
125
125
'variable_length ' => false ,
126
126
'type_hint ' => '' ,
@@ -129,8 +129,8 @@ public function testDefaultValues()
129
129
$ expected [1 ] = [
130
130
'name ' => '$var2 ' ,
131
131
'content ' => "\$var2='value' " ,
132
- 'has_attributes ' => false ,
133
132
'default ' => "'value' " ,
133
+ 'has_attributes ' => false ,
134
134
'pass_by_reference ' => false ,
135
135
'variable_length ' => false ,
136
136
'type_hint ' => '' ,
@@ -900,6 +900,7 @@ public function testPHP8ConstructorPropertyPromotionGlobalFunction()
900
900
'type_hint ' => '' ,
901
901
'nullable_type ' => false ,
902
902
'property_visibility ' => 'private ' ,
903
+ 'property_readonly ' => false ,
903
904
];
904
905
905
906
$ this ->getMethodParametersTestHelper ('/* ' .__FUNCTION__ .' */ ' , $ expected );
@@ -924,6 +925,7 @@ public function testPHP8ConstructorPropertyPromotionAbstractMethod()
924
925
'type_hint ' => 'callable ' ,
925
926
'nullable_type ' => false ,
926
927
'property_visibility ' => 'public ' ,
928
+ 'property_readonly ' => false ,
927
929
];
928
930
$ expected [1 ] = [
929
931
'name ' => '$x ' ,
@@ -934,6 +936,7 @@ public function testPHP8ConstructorPropertyPromotionAbstractMethod()
934
936
'type_hint ' => '' ,
935
937
'nullable_type ' => false ,
936
938
'property_visibility ' => 'private ' ,
939
+ 'property_readonly ' => false ,
937
940
];
938
941
939
942
$ this ->getMethodParametersTestHelper ('/* ' .__FUNCTION__ .' */ ' , $ expected );
@@ -953,6 +956,7 @@ public function testCommentsInParameter()
953
956
'name ' => '$param ' ,
954
957
'content ' => '// Leading comment.
955
958
?MyClass /*-*/ & /*-*/.../*-*/ $param /*-*/ = /*-*/ \'default value \' . /*-*/ \'second part \' // Trailing comment. ' ,
959
+ 'default ' => '\'default value \' . /*-*/ \'second part \' // Trailing comment. ' ,
956
960
'has_attributes ' => false ,
957
961
'pass_by_reference ' => true ,
958
962
'variable_length ' => true ,
@@ -982,6 +986,7 @@ public function testParameterAttributesInFunctionDeclaration()
982
986
'type_hint ' => 'string ' ,
983
987
'nullable_type ' => false ,
984
988
'property_visibility ' => 'private ' ,
989
+ 'property_readonly ' => false ,
985
990
];
986
991
$ expected [1 ] = [
987
992
'name ' => '$typedParamSingleAttribute ' ,
0 commit comments