From a7856b511b0733627815ced387c2f2581afacc27 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Wed, 28 Feb 2024 14:37:25 -0500 Subject: [PATCH] Laravel 11.x Support --- .github/workflows/run-tests.yml | 8 +++++++- composer.json | 24 ++++++++++++------------ tests/TestClasses/FakeEncrypter.php | 10 ++++++++++ 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5e8a573..f3f1508 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,9 +10,11 @@ jobs: matrix: os: [ubuntu-latest] php: [8.2, 8.1, 8.0] - laravel: [10.*, 9.*, 8.*] + laravel: [11.*, 10.*, 9.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: + - laravel: 11.* + testbench: 9.* - laravel: 10.* testbench: 8.* - laravel: 9.* @@ -20,6 +22,10 @@ jobs: - laravel: 8.* testbench: ^6.23 exclude: + - laravel: 11.* + php: 8.1 + - laravel: 11.* + php: 8.0 - laravel: 10.* php: 8.0 diff --git a/composer.json b/composer.json index a360c2d..5a76641 100644 --- a/composer.json +++ b/composer.json @@ -17,22 +17,22 @@ ], "require": { "php": "^8.0", - "illuminate/contracts": "^8.0|^9.0|^10.0", - "illuminate/encryption": "^8.0|^9.0|^10.0", - "illuminate/http": "^8.0|^9.0|^10.0", - "illuminate/support": "^8.0|^9.0|^10.0", - "illuminate/validation": "^8.0|^9.0|^10.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0", + "illuminate/encryption": "^8.0|^9.0|^10.0|^11.0", + "illuminate/http": "^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "illuminate/validation": "^8.0|^9.0|^10.0|^11.0", "nesbot/carbon": "^2.0", "spatie/laravel-package-tools": "^1.9", - "symfony/http-foundation": "^5.1.2|^6.0" + "symfony/http-foundation": "^5.1.2|^6.0|^7.0" }, "require-dev": { - "livewire/livewire": "^2.10", - "orchestra/testbench": "^6.23|^7.0|^8.0", - "pestphp/pest-plugin-livewire": "^1.0", - "phpunit/phpunit": "^9.4", - "spatie/pest-plugin-snapshots": "^1.1", - "spatie/phpunit-snapshot-assertions": "^4.2", + "livewire/livewire": "^2.10|^3.0", + "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", + "pestphp/pest-plugin-livewire": "^1.0|^2.1", + "phpunit/phpunit": "^9.6|^10.5", + "spatie/pest-plugin-snapshots": "^1.1|^2.1", + "spatie/phpunit-snapshot-assertions": "^4.2|^5.1", "spatie/test-time": "^1.2.1" }, "autoload": { diff --git a/tests/TestClasses/FakeEncrypter.php b/tests/TestClasses/FakeEncrypter.php index 55918ef..cba3968 100644 --- a/tests/TestClasses/FakeEncrypter.php +++ b/tests/TestClasses/FakeEncrypter.php @@ -21,4 +21,14 @@ public function getKey() { return 1; } + + public function getAllKeys() + { + return []; + } + + public function getPreviousKeys() + { + return []; + } }