diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dbeeb6c..da0b114 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,15 +11,9 @@ jobs: strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4'] - laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7', '8'] + php: ['7.4', '8.0'] + laravel: ['6', '7', '8'] exclude: - - php: '7.1' - laravel: '6' - - php: '7.1' - laravel: '7' - - php: '7.1' - laravel: '8' - php: '7.2' laravel: '8' diff --git a/composer.json b/composer.json index d2ba5a9..b14ed91 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "^7.1.3", - "illuminate/config": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "segmentio/analytics-php": "~1.5.2" + "php": ">=7.4", + "illuminate/config": "^6.0 || ^7.0 || ^8.0", + "illuminate/support": "^6.0 || ^7.0 || ^8.0", + "segmentio/analytics-php": "~2.0.0" }, "require-dev": { "graham-campbell/analyzer": "^2.4 || ^3.0", diff --git a/src/SegmentServiceProvider.php b/src/SegmentServiceProvider.php index 7adaf00..867b050 100644 --- a/src/SegmentServiceProvider.php +++ b/src/SegmentServiceProvider.php @@ -16,7 +16,7 @@ use Illuminate\Foundation\Application as LaravelApplication; use Illuminate\Support\ServiceProvider; use Laravel\Lumen\Application as LumenApplication; -use Segment; +use Segment\Segment; /** * This is the segment service provider class. diff --git a/tests/ServiceProviderTest.php b/tests/ServiceProviderTest.php index d01c009..7171bd3 100644 --- a/tests/ServiceProviderTest.php +++ b/tests/ServiceProviderTest.php @@ -26,7 +26,7 @@ class ServiceProviderTest extends AbstractPackageTestCase { use ServiceProviderTrait; - protected function getServiceProviderClass($app) + protected function getServiceProviderClass() { return SegmentServiceProvider::class; }