Skip to content

Commit 89b4c87

Browse files
committed
bug correction
1 parent 0b1ce3d commit 89b4c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,9 +1752,9 @@ private function inVendors(string $path): bool
17521752

17531753
foreach ($this->vendors as $vendor) {
17541754
if (\in_array($path[\strlen($vendor)] ?? '', ['/', \DIRECTORY_SEPARATOR], true) && str_starts_with($path, $vendor)) {
1755-
$this->pathsInVendor[$vendor.'/composer'] = false;
1756-
$this->addResource(new FileResource($vendor.'/composer/installed.json'));
1757-
$this->pathsInVendor[$vendor.'/composer'] = true;
1755+
$this->pathsInVendor[$vendor.\DIRECTORY_SEPARATOR.'composer'] = false;
1756+
$this->addResource(new FileResource($vendor.\DIRECTORY_SEPARATOR.'composer'.\DIRECTORY_SEPARATOR.'installed.json'));
1757+
$this->pathsInVendor[$vendor.\DIRECTORY_SEPARATOR.'composer'] = true;
17581758

17591759
return $this->pathsInVendor[$path] = true;
17601760
}

0 commit comments

Comments
 (0)