diff --git a/src/Exceptions/InvalidUsesPath.php b/src/Exceptions/InvalidUsesPath.php deleted file mode 100644 index dff163673..000000000 --- a/src/Exceptions/InvalidUsesPath.php +++ /dev/null @@ -1,24 +0,0 @@ -targets = array_map(function ($target): string { - $isValid = is_dir($target) || file_exists($target); - if (!$isValid) { - throw new InvalidUsesPath($target); + $this->targets = array_reduce($targets, function (array $accumulator, string $target): array { + if (is_dir($target) || file_exists($target)) { + $accumulator[] = (string) realpath($target); } - return (string) realpath($target); - }, $targets); + return $accumulator; + }, []); } /**