From 1df165c24f26e2d5d4bb6e1834afd63bc0611d53 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Tue, 8 Sep 2026 11:38:05 +0200 Subject: [PATCH] IBX-12374: Enabled the Behat annotations-to-attributes set in the shared Rector configuration factory --- src/contracts/Factory/IbexaRectorConfigFactory.php | 1 + tests/contracts/IbexaRectorConfigFactoryTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/contracts/Factory/IbexaRectorConfigFactory.php b/src/contracts/Factory/IbexaRectorConfigFactory.php index ef6b656..e0553fb 100644 --- a/src/contracts/Factory/IbexaRectorConfigFactory.php +++ b/src/contracts/Factory/IbexaRectorConfigFactory.php @@ -62,6 +62,7 @@ public function createConfig(): RectorConfigBuilder $this->extraSets ) ) + ->withAttributesSets(behat: true) ; } } diff --git a/tests/contracts/IbexaRectorConfigFactoryTest.php b/tests/contracts/IbexaRectorConfigFactoryTest.php index 3016408..d4b1761 100644 --- a/tests/contracts/IbexaRectorConfigFactoryTest.php +++ b/tests/contracts/IbexaRectorConfigFactoryTest.php @@ -14,6 +14,7 @@ use Rector\Config\RectorConfig; use Rector\Configuration\Option; use Rector\Configuration\Parameter\SimpleParameterProvider; +use Rector\Set\ValueObject\SetList; use Rector\Symfony\Set\SymfonySetList; /** @@ -57,6 +58,7 @@ public static function getSetsForIbexaConfigFactory(): iterable SymfonySetList::SYMFONY_70, SymfonySetList::SYMFONY_71, SymfonySetList::SYMFONY_72, + SetList::BEHAT_ANNOTATIONS_TO_ATTRIBUTES, ]; yield 'default set list' => [