From 272608b4ec4466c074aa8e330b173c0596eea6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 22 Jun 2024 00:00:59 +0200 Subject: [PATCH] Ignore symfony generated files for rector --- rector.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rector.php b/rector.php index 232ee1e4..5002b04c 100644 --- a/rector.php +++ b/rector.php @@ -56,4 +56,12 @@ return static function (RectorConfig $rectorConfig): void { $rectorConfig->skip([ CountArrayToEmptyArrayComparisonRector::class, ]); + + //Do not apply rules to Symfony own files + $rectorConfig->skip([ + __DIR__ . '/public/index.php', + __DIR__ . '/src/Kernel.php', + __DIR__ . '/config/preload.php', + __DIR__ . '/config/bundles.php', + ]); };