diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 642c56c..1f923c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: # os: [ubuntu-latest, windows-latest] os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3] - laravel: [7.*, 8.*, 9.*, 10.*, 11.*] + laravel: [7.*, 8.*, 9.*, 10.*, 11.*, 12.*] #stability: [prefer-lowest, prefer-stable] stability: [prefer-stable] exclude: @@ -48,6 +48,14 @@ jobs: php: 8.0 - laravel: 11.* php: 8.1 + # Laravel 12 doesn't support < PHP 8.2 + - laravel: 12.* + php: 7.4 + - laravel: 12.* + php: 8.0 + - laravel: 12.* + php: 8.1 + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 574eee2..b114623 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes will be documented in this file +## 2.9.0 - 2025-02-25 + +Added support for Laravel 12. + +## 2.8.0 - 2024-05-23 + +Support multiple recipients (TOs) by @ArronKing in #22 + ## 2.7.0 - 2024-03-07 Added support for Laravel 11. diff --git a/composer.json b/composer.json index 924e8cf..74b9ca3 100644 --- a/composer.json +++ b/composer.json @@ -13,15 +13,15 @@ ], "require": { "php": ">=7.2", - "illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", "sendgrid/sendgrid": "^7.11|^8.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.8", "mockery/mockery": "^1.5", - "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0", - "phpunit/phpunit": "^8.4|^9.0|^10.0" + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", + "phpunit/phpunit": "^8.4|^9.0|^10.0|^11.0" }, "autoload": { "psr-4": { diff --git a/tests/SendGridChannelTest.php b/tests/SendGridChannelTest.php index ed41696..3dc6610 100644 --- a/tests/SendGridChannelTest.php +++ b/tests/SendGridChannelTest.php @@ -17,6 +17,8 @@ class SendGridChannelTest extends TestCase public function tearDown(): void { Mockery::close(); + + parent::tearDown(); } public function testEmailIsSentViaSendGrid() @@ -69,12 +71,12 @@ public function toSendGrid($notifiable) Event::assertDispatched( NotificationSent::class, - fn ($event) => $event->channel === SendGridChannel::class + fn($event) => $event->channel === SendGridChannel::class ); Event::assertDispatched( NotificationSent::class, - fn ($event) => $event->response instanceof Response + fn($event) => $event->response instanceof Response ); }