diff --git a/lib/Filesystem.php b/lib/Filesystem.php index fde0701..ec94879 100644 --- a/lib/Filesystem.php +++ b/lib/Filesystem.php @@ -10,6 +10,7 @@ declare(strict_types=1); namespace MensBeam; use MensBeam\Filesystem\{ FileNotFoundException, + InvalidArgumentException, IOException }; @@ -407,11 +408,11 @@ class Filesystem { */ public static function makePathRelative(string $endPath, string $startPath): string { if (!self::isAbsolutePath($startPath)) { - throw new \InvalidArgumentException(sprintf('The start path "%s" is not absolute.', $startPath)); + throw new InvalidArgumentException(sprintf('The start path "%s" is not absolute.', $startPath)); } if (!self::isAbsolutePath($endPath)) { - throw new \InvalidArgumentException(sprintf('The end path "%s" is not absolute.', $endPath)); + throw new InvalidArgumentException(sprintf('The end path "%s" is not absolute.', $endPath)); } // Normalize separators on Windows diff --git a/lib/Filesystem/InvalidArgumentException.php b/lib/Filesystem/InvalidArgumentException.php new file mode 100644 index 0000000..f3806b5 --- /dev/null +++ b/lib/Filesystem/InvalidArgumentException.php @@ -0,0 +1,16 @@ + + */ +class InvalidArgumentException extends \InvalidArgumentException {} \ No newline at end of file