From 8a1e3476a9c07b72ace4d4747bac7c58dbc1c066 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 13 Dec 2024 16:10:26 +0000 Subject: [PATCH 1/2] Fix styling --- src/Browsershot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Browsershot.php b/src/Browsershot.php index 053c742..3b88f10 100644 --- a/src/Browsershot.php +++ b/src/Browsershot.php @@ -261,7 +261,7 @@ public function setUrl(string $url): static $unsupportedProtocols = ['file://', 'file:/', 'file:\\', 'file:\\\\']; - foreach($unsupportedProtocols as $unsupportedProtocol) { + foreach ($unsupportedProtocols as $unsupportedProtocol) { if (str_starts_with(strtolower($url), $unsupportedProtocol)) { throw FileUrlNotAllowed::make(); } From c4ed3a83fd1d0febc4d8c5fa27a405e51350bd0a Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 13 Dec 2024 16:12:36 +0000 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbe3355..f5c46e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 5.0.2 - 2024-12-13 + +**Full Changelog**: https://github.com/spatie/browsershot/compare/5.0.1...5.0.2 + ## 5.0.1 - 2024-12-11 **Full Changelog**: https://github.com/spatie/browsershot/compare/5.0.0...5.0.1