Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Support php 8 #25

Open
wants to merge 4 commits into
base: 3.5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/SegmentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/ServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ServiceProviderTest extends AbstractPackageTestCase
{
use ServiceProviderTrait;

protected function getServiceProviderClass($app)
protected function getServiceProviderClass()
{
return SegmentServiceProvider::class;
}
Expand Down