Skip to content

Commit fc762a7

Browse files
committed
Add reproducer for #1117
1 parent 0da2d66 commit fc762a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Attributes Reproducer
2+
-----
3+
<?php
4+
class X {
5+
#[A]
6+
#[B]
7+
public function m() {}
8+
}
9+
-----
10+
$stmts[0]->stmts[0]->flags = ($stmts[0]->stmts[0]->flags & ~\PhpParser\Modifiers::PUBLIC) | \PhpParser\Modifiers::PROTECTED;
11+
-----
12+
<?php
13+
class X {
14+
#[A]
15+
#[B]
16+
protected function m() {}
17+
}

0 commit comments

Comments
 (0)