Repository navigation
Commit 2ddbeca
committed
[DeadCode] Retarget RemoveParentDelegatingClassMethodRector to Class_ node
Subscribe to Class_ and resolve the class reflection from the node name via ReflectionProvider, instead of fetching scope per ClassMethod. Iterate the class methods once and drop the delegating ones.1 parent 75fd6b2 commit 2ddbeca
39 files changed
Lines changed: 291 additions & 264 deletions
File tree
- rules-tests/DeadCode/Rector
- ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture
- Class_/RemoveParentDelegatingClassMethodRector
- Fixture
- Source
- config
- rules/DeadCode/Rector/Class_
- src/Config/Level
0 commit comments