From 47942ceae9b0bde44f28dcbbdfa3f02ea2d5d81b Mon Sep 17 00:00:00 2001 From: Taras Machyshyn Date: Mon, 13 Jan 2025 16:11:45 +0200 Subject: [PATCH] Upgrade script fixes --- upgrades/9.0/scripts/BeforeUpgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrades/9.0/scripts/BeforeUpgrade.php b/upgrades/9.0/scripts/BeforeUpgrade.php index 9d27268d97..0aeb45d1cb 100644 --- a/upgrades/9.0/scripts/BeforeUpgrade.php +++ b/upgrades/9.0/scripts/BeforeUpgrade.php @@ -110,7 +110,7 @@ class BeforeUpgrade foreach ($phpFiles as $path) { $file = $path[0]; - if ($this->isSkip($file, $skipPathRegexList)) { + if ($this->toSkip($file, $skipPathRegexList)) { continue; } @@ -118,7 +118,7 @@ class BeforeUpgrade } } - private function isSkip(string $file, array $skipPathRegexList): bool + private function toSkip(string $file, array $skipPathRegexList): bool { foreach ($skipPathRegexList as $pattern) { if (preg_match('/' . $pattern . '/', $file)) {