From 14344b4fd75f6c1a4d7aa7d64f808b3a165c92ed Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Wed, 1 Jan 2025 16:48:50 -0500 Subject: [PATCH] Fix Browsershot security vulnerability (#178) --- composer.json | 2 +- tests/Tags/AdvancedSeoTagsTest.php | 2 +- tests/TestCase.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 558a5903..c93f0991 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "php": "^8.2", "laravel/framework": "^10.0 || ^11.0", "laravel/prompts": "^0.1.24", - "spatie/browsershot": "^4.0", + "spatie/browsershot": "^5.0.5", "spatie/image": "^3.4", "spatie/laravel-ray": "^1.32", "spatie/schema-org": "^3.14", diff --git a/tests/Tags/AdvancedSeoTagsTest.php b/tests/Tags/AdvancedSeoTagsTest.php index 833a859c..72e6b5e1 100644 --- a/tests/Tags/AdvancedSeoTagsTest.php +++ b/tests/Tags/AdvancedSeoTagsTest.php @@ -11,7 +11,7 @@ class AdvancedSeoTagsTest extends TestCase protected $context = ['foo' => 'bar']; - public function setUp(): void + protected function setUp(): void { parent::setUp(); diff --git a/tests/TestCase.php b/tests/TestCase.php index e3b40fc8..33ac60cf 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -23,7 +23,7 @@ protected function setUp(): void } } - public function tearDown(): void + protected function tearDown(): void { $uses = array_flip(class_uses_recursive(static::class));