From e67d605e8962cf76710ed5d17b3a6bc447531324 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 30 Mar 2026 18:34:48 +0200 Subject: [PATCH] fix(core): fix config loading priority on Windows --- packages/core/src/Kernel/LoadConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Kernel/LoadConfig.php b/packages/core/src/Kernel/LoadConfig.php index 14748304f..934aa31a6 100644 --- a/packages/core/src/Kernel/LoadConfig.php +++ b/packages/core/src/Kernel/LoadConfig.php @@ -69,7 +69,7 @@ public function find(): array }) ->sortByCallback(function (string $path1, string $path2) use ($suffixes): int { $getPriority = fn (string $path): int => match (true) { - Str\contains($path, DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR) => 0, + Str\contains($path, '/vendor/') => 0, ! Str\contains($path, root_path()) => 0, Str\contains($path, $suffixes['testing']) => 6, Str\contains($path, $suffixes['development']) => 5,