diff --git a/bin/rector.php b/bin/rector.php index ef8161e1ffa..532970222d8 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -147,6 +147,7 @@ public function loadIfExistsAndNotLoadedYet(string $filePath): void do { $errors[] = $throwable->getMessage(); } while ($throwable = $throwable->getPrevious()); + echo Json::encode([ 'fatal_errors' => $errors, ]); diff --git a/build/target-repository/e2e/attributes/rector.php b/build/target-repository/e2e/attributes/rector.php index 027d3fda920..a74c776f842 100644 --- a/build/target-repository/e2e/attributes/rector.php +++ b/build/target-repository/e2e/attributes/rector.php @@ -7,7 +7,7 @@ use Rector\ValueObject\PhpVersion; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->sets([SymfonySetList::SYMFONY_52]); + $rectorConfig->sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]); $rectorConfig->phpVersion(PhpVersion::PHP_80); $rectorConfig->paths([__DIR__ . '/src']); diff --git a/tests/Config/RectorConfigTest.php b/tests/Config/RectorConfigTest.php index ac0d3a8ca85..7bc91bcb011 100644 --- a/tests/Config/RectorConfigTest.php +++ b/tests/Config/RectorConfigTest.php @@ -28,7 +28,7 @@ public function test(): void $rectorConfig = $this->getContainer(); $rectorConfig->configure() - ->withSets([TwigSetList::TWIG_134]) + ->withSets([TwigSetList::COMPOSER_BASED]) ->withRules([ReturnTypeFromReturnNewRector::class])($rectorConfig); // only collect root withRules()