diff --git a/src/Embedder/AttachmentEmbedder.php b/src/Embedder/AttachmentEmbedder.php index c98bab1..2def3b8 100755 --- a/src/Embedder/AttachmentEmbedder.php +++ b/src/Embedder/AttachmentEmbedder.php @@ -126,7 +126,7 @@ public function fromRemoteUrl($url) $pathInfo = pathinfo($url); $queryStr = parse_url($url, PHP_URL_QUERY) ?: ''; - parse_str($queryStr, $queryParams); + parse_str($queryStr ?? '', $queryParams); $basename = $queryParams['basename'] ?? $pathInfo['basename']; if (config('mail-auto-embed.curl.cache', false)) {