From fb413604b6ae1917947485ba3042f9f2dbe6e3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Kapic=CC=8Cka?= Date: Thu, 23 Apr 2020 18:25:24 +0200 Subject: [PATCH] Compiler: Fix invalid changes in config/set neon files --- compiler/build/scoper.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }