diff --git a/src/Options.php b/src/Options.php index 4cbfe9604..4d5e16115 100644 --- a/src/Options.php +++ b/src/Options.php @@ -1194,6 +1194,9 @@ public function getHttpContext() public function validateArtifactPath(?string $path, string $option) { + if ($path === null) { + return true; + } $parsed_uri = parse_url($path); if ($parsed_uri === false || (array_key_exists("scheme", $parsed_uri) && strtolower($parsed_uri["scheme"]) === "phar")) { return false;