1
0
Fork 0

Fix type error

pull/10687/head
Jordi Boggiano 2022-04-01 10:02:19 +02:00
parent 03b7882ac2
commit 10287fcea3
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 6 deletions

View File

@ -721,12 +721,8 @@ EOF;
$baseDir = ''; $baseDir = '';
if (strpos($path.'/', $vendorPath.'/') === 0) { if (strpos($path.'/', $vendorPath.'/') === 0) {
$path = substr($path, strlen($vendorPath)); $path = (string) substr($path, strlen($vendorPath));
$baseDir = '$vendorDir'; $baseDir = '$vendorDir . ';
if ($path !== false) {
$baseDir .= " . ";
}
} else { } else {
$path = $filesystem->normalizePath($filesystem->findShortestPath($basePath, $path, true)); $path = $filesystem->normalizePath($filesystem->findShortestPath($basePath, $path, true));
if (!$filesystem->isAbsolutePath($path)) { if (!$filesystem->isAbsolutePath($path)) {