From 8114d55de2f3b93e493d91df72f0beebea6bfae9 Mon Sep 17 00:00:00 2001 From: Ivan Vermeyen Date: Fri, 11 Feb 2022 18:17:25 +0100 Subject: [PATCH] Add support for Laravel 9 (#32) * Update method signature in AbstractTestCase Fixes Fatal error: Declaration of Cog\Tests\Laravel\Optimus\AbstractTestCase::getServiceProviderClass($app) must be compatible with GrahamCampbell\TestBench\AbstractPackageTestCase::getServiceProviderClass() * Add support for Laravel 9 --- composer.json | 4 ++-- tests/AbstractTestCase.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 5930bab..c693aad 100644 --- a/composer.json +++ b/composer.json @@ -36,8 +36,8 @@ "require": { "php": "^7.1.3|^8.0", "graham-campbell/manager": "^4.0", - "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0", - "illuminate/support": "^5.5|^6.0|^7.0|^8.0", + "illuminate/contracts": "^5.5|^6.0|^7.0|^8.0|^9.0", + "illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0", "jenssegers/optimus": "^0.2.2" }, "require-dev": { diff --git a/tests/AbstractTestCase.php b/tests/AbstractTestCase.php index ccb869b..fc6f561 100644 --- a/tests/AbstractTestCase.php +++ b/tests/AbstractTestCase.php @@ -21,11 +21,9 @@ abstract class AbstractTestCase extends AbstractPackageTestCase /** * Get the service provider class. * - * @param \Illuminate\Contracts\Foundation\Application $app - * * @return string */ - protected function getServiceProviderClass($app) + protected function getServiceProviderClass() { return OptimusServiceProvider::class; }