From f7ecfbb72de3120ae2e7478073183ecef5415dcf Mon Sep 17 00:00:00 2001 From: Dave Liddament Date: Mon, 19 Nov 2018 22:47:44 +0000 Subject: [PATCH] Fix docblock for Path::makeAbsolute --- src/Path.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Path.php b/src/Path.php index 2f4a177..491b282 100644 --- a/src/Path.php +++ b/src/Path.php @@ -558,7 +558,7 @@ public static function isRelative($path) * // => C:/style.css * * Path::makeAbsolute("C:/style.css", "/webmozart/puli/css"); - * // InvalidArgumentException + * // => C:/style.css * ``` * * If the base path is not an absolute path, an exception is thrown. @@ -570,9 +570,7 @@ public static function isRelative($path) * * @return string An absolute path in canonical form. * - * @throws InvalidArgumentException If the base path is not absolute or if - * the given path is an absolute path with - * a different root than the base path. + * @throws InvalidArgumentException If the base path is not absolute. * * @since 1.0 Added method. * @since 2.0 Method now fails if $path or $basePath is not a string.