Skip to content

Commit 2ddbeca

Browse files
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

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_added_native_types.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_attributed_method.php.inc‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_construct.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_deprecated_docblock.php.inc‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_different_parent_method.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_extra_stmt.php.inc‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_final_method.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_narrowed_param_type.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_no_parent_class.php.inc‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎rules-tests/DeadCode/Rector/ClassMethod/RemoveParentDelegatingClassMethodRector/Fixture/skip_private_parent_method.php.inc‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)