8000 fix: ignore missing directory in isVendor() · symfony/symfony@40ac31b · GitHub
[go: up one dir, main page]

Skip to content

Commit 40ac31b

Browse files
fix: ignore missing directory in isVendor()
1 parent 5cc07e7 commit 40ac31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/AssetMapper/Factory/MappedAssetFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ private function isVendor(string $sourcePath): bool
128128
$sourcePath = realpath($sourcePath);
129129
$vendorDir = realpath($this->vendorDir);
130130

131-
return $sourcePath && str_starts_with($sourcePath, $vendorDir);
131+
return $sourcePath && $vendorDir && str_starts_with($sourcePath, $vendorDir);
132132
}
133133
}

0 commit comments

Comments
 (0)
0