Fix type error
parent
03b7882ac2
commit
10287fcea3
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue