diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1704ebc..27b8db6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -17,7 +17,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.4] + php: [8.4, 8.3] laravel: [11.*] stability: [prefer-lowest, prefer-stable] include: diff --git a/README.md b/README.md index d227b9b..468b523 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A Laravel package for proxying Plausible Analytics, improving performance and pr ## Requirements - Laravel 11 -- PHP 8.4+ +- PHP 8.3+ ## 🚀 Installation diff --git a/composer.json b/composer.json index e511c05..134b4b2 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": "^8.4", + "php": "^8.3", "spatie/laravel-package-tools": "^1.16", "illuminate/contracts": "^10.0||^11.0" }, diff --git a/tests/PlausibleProxyTest.php b/tests/PlausibleProxyTest.php index 157d4cc..be4cbc7 100644 --- a/tests/PlausibleProxyTest.php +++ b/tests/PlausibleProxyTest.php @@ -54,9 +54,6 @@ it('accepts valid event data and forwards headers', function () { Http::fake([ 'https://plausible.io/api/event' => function ($request) { - dump($request->headers()); - dump($request->data()); - return Http::response(['status' => 'queued'], 200); }, ]); @@ -78,10 +75,6 @@ it('accepts valid event data and forwards headers', function () { Http::assertSentCount(1); Http::assertSent(function ($request) { - dump($request->url()); - dump($request->headers()); - dump($request->data()); - return $request->url() === 'https://plausible.io/api/event' && isset($request['n']) && $request['n'] === 'pageview' && isset($request['u']) && $request['u'] === 'https://example.com/page'