From 96cb0077ccf631c63e8b792b3db4c9544b189f81 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 21 Dec 2024 11:47:26 +0700 Subject: [PATCH] Add sub namespace Groups fixture on AnnotationToAttributeRector --- .../Symfony/same_groups_class_name.php.inc | 48 +++++++++++++++++++ .../Source/Groups.php | 13 +++++ .../config/configured_rule.php | 2 + .../Component/Serializer/Attribute/Groups.php | 15 ++++++ 4 files changed, 78 insertions(+) create mode 100644 rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/Symfony/same_groups_class_name.php.inc create mode 100644 rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Source/Groups.php create mode 100644 stubs/Symfony/Component/Serializer/Attribute/Groups.php diff --git a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/Symfony/same_groups_class_name.php.inc b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/Symfony/same_groups_class_name.php.inc new file mode 100644 index 00000000000..751dca3843a --- /dev/null +++ b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/Symfony/same_groups_class_name.php.inc @@ -0,0 +1,48 @@ + +----- + diff --git a/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Source/Groups.php b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Source/Groups.php new file mode 100644 index 00000000000..6a56fe33abb --- /dev/null +++ b/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Source/Groups.php @@ -0,0 +1,13 @@ +