File tree Expand file tree Collapse file tree 3 files changed +38
-20
lines changed Expand file tree Collapse file tree 3 files changed +38
-20
lines changed Original file line number Diff line number Diff line change @@ -203,3 +203,22 @@ $has_index_value_scalar['foo']['value'] = array (
203
203
EXPECTED
204
204
],
205
205
];
206
+
207
+ /**
208
+ * Test PHP attributes.
209
+ */
210
+ class TestPhpAttributes {
211
+
212
+ /**
213
+ * Bar property.
214
+ */
215
+ #[NotBlank]
216
+ private bool $ bar ;
217
+
218
+ /**
219
+ * Tests method with PHP attribute and docblock.
220
+ */
221
+ #[\ReturnTypeWillChange]
222
+ public function attributes (): void {}
223
+
224
+ }
Original file line number Diff line number Diff line change @@ -215,3 +215,22 @@ $has_index_value_scalar['foo']['value'] = array (
215
215
EXPECTED
216
216
],
217
217
];
218
+
219
+ /**
220
+ * Test PHP attributes.
221
+ */
222
+ class TestPhpAttributes {
223
+
224
+ /**
225
+ * Bar property.
226
+ */
227
+ #[NotBlank]
228
+ private bool $bar;
229
+
230
+ /**
231
+ * Tests method with PHP attribute and docblock.
232
+ */
233
+ #[\ReturnTypeWillChange]
234
+ public function attributes(): void {}
235
+
236
+ }
Original file line number Diff line number Diff line change @@ -838,26 +838,6 @@ function test28() {
838
838
enum aBad_NameForAnEnum {
839
839
}
840
840
841
- /**
842
- * Test PHP attributes.
843
- */
844
- class TestPhpAttributes {
845
-
846
- /**
847
- * Bar property.
848
- */
849
- #[NotBlank]
850
- private bool $ bar ;
851
-
852
- /**
853
- * Tests method with PHP attribute and docblock.
854
- */
855
- #[\ReturnTypeWillChange]
856
- public function attributes (): void {
857
- }
858
-
859
- }
860
-
861
841
/**
862
842
* A test class.
863
843
*/
You can’t perform that action at this time.
0 commit comments