1
0
mirror of synced 2025-02-16 15:33:12 +03:00

Fix for classpath builder

This commit is contained in:
Pavel 2019-06-24 10:57:52 +03:00
parent f68dfeed8b
commit b630b73f1d

View File

@ -119,13 +119,17 @@ class Client
*/
private static function concatClasspath($fromRoot, ...$classes)
{
$path = $fromRoot ? '\\' : '';
$path = '';
foreach ($classes as $class) {
$path .= '\\' . $class;
if (empty($path) && !$fromRoot) {
$path .= $class;
} else {
$path .= '\\' . $class;
}
}
return str_replace('\\\\', '\\', $path);
return $path;
}
/**