mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
Re-dump autoloader and composer.lock
This commit is contained in:
@@ -437,11 +437,11 @@ final class Path
|
||||
public static function makeAbsolute(string $path, string $basePath): string
|
||||
{
|
||||
if ('' === $basePath) {
|
||||
throw new InvalidArgumentException(sprintf('The base path must be a non-empty string. Got: "%s".', $basePath));
|
||||
throw new InvalidArgumentException(\sprintf('The base path must be a non-empty string. Got: "%s".', $basePath));
|
||||
}
|
||||
|
||||
if (!self::isAbsolute($basePath)) {
|
||||
throw new InvalidArgumentException(sprintf('The base path "%s" is not an absolute path.', $basePath));
|
||||
throw new InvalidArgumentException(\sprintf('The base path "%s" is not an absolute path.', $basePath));
|
||||
}
|
||||
|
||||
if (self::isAbsolute($path)) {
|
||||
@@ -531,12 +531,12 @@ final class Path
|
||||
// If the passed path is absolute, but the base path is not, we
|
||||
// cannot generate a relative path
|
||||
if ('' !== $root && '' === $baseRoot) {
|
||||
throw new InvalidArgumentException(sprintf('The absolute path "%s" cannot be made relative to the relative path "%s". You should provide an absolute base path instead.', $path, $basePath));
|
||||
throw new InvalidArgumentException(\sprintf('The absolute path "%s" cannot be made relative to the relative path "%s". You should provide an absolute base path instead.', $path, $basePath));
|
||||
}
|
||||
|
||||
// Fail if the roots of the two paths are different
|
||||
if ($baseRoot && $root !== $baseRoot) {
|
||||
throw new InvalidArgumentException(sprintf('The path "%s" cannot be made relative to "%s", because they have different roots ("%s" and "%s").', $path, $basePath, $root, $baseRoot));
|
||||
throw new InvalidArgumentException(\sprintf('The path "%s" cannot be made relative to "%s", because they have different roots ("%s" and "%s").', $path, $basePath, $root, $baseRoot));
|
||||
}
|
||||
|
||||
if ('' === $relativeBasePath) {
|
||||
|
||||
Reference in New Issue
Block a user