Skip to content

Commit b7dc71e

Browse files
authored
fix(core): discover vendor directory first on all platforms (#1535)
1 parent 489daae commit b7dc71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/Kernel/LoadConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function find(): array
5858
})
5959
->sortByCallback(function (string $path1, string $path2) use ($suffixes): int {
6060
$getPriority = fn (string $path): int => match (true) {
61-
Str\contains($path, '/vendor/') => 0,
61+
Str\contains($path, DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR) => 0,
6262
Str\contains($path, $suffixes['testing']) => 6,
6363
Str\contains($path, $suffixes['development']) => 5,
6464
Str\contains($path, $suffixes['production']) => 4,

0 commit comments

Comments
 (0)