diff --git a/compiler/build/scoper.inc.php b/compiler/build/scoper.inc.php index 050efd807136..b68097121abc 100644 --- a/compiler/build/scoper.inc.php +++ b/compiler/build/scoper.inc.php @@ -112,7 +112,10 @@ function (string $filePath, string $prefix, string $content): string { if (strpos($filePath, '.neon') === false) { return $content; } - + // @see https://github.com/rectorphp/rector/issues/3227 + if (strpos($filePath, 'config/set/') !== 0) { + return $content; + } if ($content === '') { return $content; }