From 1ef3816af351e0b21a7cc5ce1129578fda75cf53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Sun, 24 Nov 2024 19:02:42 +0100 Subject: [PATCH] Drop support for Laravel 9 and 10, and PHP 8.1 Laravel requires at least PHP 8.2 --- .github/workflows/tests.yml | 6 ------ CHANGELOG.md | 4 ++++ composer.json | 9 +++++---- src/FirebaseProjectManager.php | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72f4724..3463c0f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,17 +26,11 @@ jobs: strategy: matrix: php: - - "8.1" - "8.2" - "8.3" - "8.4" laravel: - - "9" - - "10" - "11" - exclude: - - php: "8.1" - laravel: "11" steps: - name: Checkout code diff --git a/CHANGELOG.md b/CHANGELOG.md index f4420ba..2b81602 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## Unreleased + +* Dropped support for Laravel 9 and 10 + ## 5.10.0 - 2024-11-22 * Added support for PHP 8.4 diff --git a/composer.json b/composer.json index 75833cb..be85be0 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,15 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "kreait/firebase-php": "^7.13", - "illuminate/contracts": "^9.0 || ^10.0 || ^11.0", - "illuminate/support": "^9.0 || ^10.0 || ^11.0", + "illuminate/contracts": "^11.0", + "illuminate/notifications": "^11.0", + "illuminate/support": "^11.0", "symfony/cache": "^6.1.2 || ^7.0.3" }, "require-dev": { - "orchestra/testbench": "^7.0 || ^8.0 || ^9.0", + "orchestra/testbench": "^9.0", "laravel/pint": "^1.14", "phpunit/phpunit": "^9.6.17 || ^10.5.13" }, diff --git a/src/FirebaseProjectManager.php b/src/FirebaseProjectManager.php index 1b32cf8..bbb9c8d 100644 --- a/src/FirebaseProjectManager.php +++ b/src/FirebaseProjectManager.php @@ -60,7 +60,7 @@ protected function resolveJsonCredentials(string $credentials): string protected function configure(string $name): FirebaseProject { - $factory = new Factory(); + $factory = new Factory; $config = $this->configuration($name);