Commit ed47d6b
committed
test: Prove ArrayToFirstClassCallableRector skips internal callbacks
If a class contains array callbacks with a non-public method, they are
not converted into first-class callables. This is due to a fix for a bug
that was specific to skipping non-public methods referenced from
*outside* the owning class - there was no previous coverage for what
should happen when a callable is referenced within a valid scope.1 parent 2e1e9cc commit ed47d6b
1 file changed
Lines changed: 35 additions & 0 deletions
File tree
- rules-tests/Php81/Rector/Array_/ArrayToFirstClassCallableRector/Fixture
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments