From 1a98ed800fbbd1070df3ab4a3657e95539bbbf1a Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 18 May 2026 12:05:06 +0200 Subject: [PATCH] add fixture with failing parent private --- ...ent_with_private_promoted_property.php.inc | 44 +++++++++++++++++++ ...tControllerWithPrivatePromotedProperty.php | 15 +++++++ 2 files changed, 59 insertions(+) create mode 100644 rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Fixture/child_of_parent_with_private_promoted_property.php.inc create mode 100644 rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Source/ParentControllerWithPrivatePromotedProperty.php diff --git a/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Fixture/child_of_parent_with_private_promoted_property.php.inc b/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Fixture/child_of_parent_with_private_promoted_property.php.inc new file mode 100644 index 00000000..be8b51c2 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Fixture/child_of_parent_with_private_promoted_property.php.inc @@ -0,0 +1,44 @@ +log('level', 'value'); + } +} + +?> +----- +logger->log('level', 'value'); + } +} + +?> diff --git a/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Source/ParentControllerWithPrivatePromotedProperty.php b/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Source/ParentControllerWithPrivatePromotedProperty.php new file mode 100644 index 00000000..27b534cd --- /dev/null +++ b/rules-tests/CodeQuality/Rector/Class_/ControllerMethodInjectionToConstructorRector/Source/ParentControllerWithPrivatePromotedProperty.php @@ -0,0 +1,15 @@ +