Skip to content

Commit d2b076e

Browse files
authored
Merge pull request #1049 from rebing/mfn-drop-l8
2 parents e1225d3 + cb0a75d commit d2b076e

18 files changed

+24
-44
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
37-
laravel: [^8.0, ^9.0, ^10.0]
37+
laravel: [^9.0, ^10.0]
3838
exclude:
39-
- php: 7.4
40-
laravel: ^9.0
4139
- php: 8.0
4240
laravel: ^10.0
43-
- php: 7.4
44-
laravel: ^10.0
4541
name: P=${{ matrix.php }} L=${{ matrix.laravel }}
4642
runs-on: ubuntu-latest
4743
env:
@@ -58,8 +54,6 @@ jobs:
5854
# Due to version incompatibility with older Laravels we test, we remove it
5955
- run: composer remove --dev nunomaduro/larastan --no-update
6056
- run: composer remove --dev friendsofphp/php-cs-fixer --no-update
61-
- run: composer remove --dev laravel/legacy-factories --no-update
62-
if: (matrix.laravel == '^6.0' || matrix.laravel == '^7.0')
6357
- run: composer require illuminate/contracts:${{ matrix.laravel }} --no-update
6458

6559
- name: Get composer cache directory

.github/workflows/tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,10 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }}
37-
laravel: [^8.0, ^9.0, ^10.0]
37+
laravel: [^9.0, ^10.0]
3838
exclude:
39-
- php: 7.4
40-
laravel: ^9.0
4139
- php: 8.0
4240
laravel: ^10.0
43-
- php: 7.4
44-
laravel: ^10.0
4541
name: P=${{ matrix.php }} L=${{ matrix.laravel }}
4642
runs-on: ubuntu-latest
4743
env:
@@ -59,8 +55,6 @@ jobs:
5955
# Due to version incompatibility with older Laravels we test, we remove it
6056
- run: composer remove --dev nunomaduro/larastan --no-update
6157
- run: composer remove --dev friendsofphp/php-cs-fixer --no-update
62-
- run: composer remove --dev laravel/legacy-factories --no-update
63-
if: (matrix.laravel == '^6.0' || matrix.laravel == '^7.0')
6458
- run: composer require illuminate/contracts:${{ matrix.laravel }} --no-update
6559

6660
- name: Get composer cache directory

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ CHANGELOG
4646
name have to match.
4747
- Remove integrated GraphiQL support in favour of https://github.com/mll-lab/laravel-graphiql [\#986 / mfn](https://github.com/rebing/graphql-laravel/pull/986)
4848
- Laravel 6 is no longer supported [\#967 / mfn](https://github.com/rebing/graphql-laravel/pull/967)
49+
- Laravel 8 is no longer supported [\#1049 / mfn](https://github.com/rebing/graphql-laravel/pull/1049)
4950

5051
## Changed
5152
- The type resolver is now able to resolve the top level types 'Query',

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Downloads](https://img.shields.io/packagist/dt/rebing/graphql-laravel.svg?style=flat-square)](https://packagist.org/packages/rebing/graphql-laravel)
77
[![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://join.slack.com/t/rebing-graphql/shared_invite/enQtNTE5NjQzNDI5MzQ4LTdhNjk0ZGY1N2U1YjE4MGVlYmM2YTc2YjQ0MmIwODY5MWMwZWIwYmY1MWY4NTZjY2Q5MzdmM2Q3NTEyNDYzZjc)
88

9-
Use Facebook's GraphQL with PHP 7.4+ on Laravel 8.0+. It is based on the [PHP port of GraphQL reference implementation](https://github.com/webonyx/graphql-php). You can find more information about GraphQL in the [GraphQL Introduction](https://reactjs.org/blog/2015/05/01/graphql-introduction.html) on the [React](https://reactjs.org/) blog or you can read the [GraphQL specifications](https://spec.graphql.org/).
9+
Use Facebook's GraphQL with PHP 8.0+ on Laravel 9.0+. It is based on the [PHP port of GraphQL reference implementation](https://github.com/webonyx/graphql-php). You can find more information about GraphQL in the [GraphQL Introduction](https://reactjs.org/blog/2015/05/01/graphql-introduction.html) on the [React](https://reactjs.org/) blog or you can read the [GraphQL specifications](https://spec.graphql.org/).
1010

1111
* Allows creating **queries** and **mutations** as request endpoints
1212
* Supports multiple schemas
@@ -33,7 +33,7 @@ It offers following features and improvements over the original package by
3333

3434
### Dependencies:
3535

36-
* [Laravel 6.0+](https://github.com/laravel/laravel)
36+
* [Laravel 9.0+](https://github.com/laravel/laravel)
3737
* [GraphQL PHP](https://github.com/webonyx/graphql-php)
3838

3939

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"license": "MIT",
3535
"type": "library",
3636
"require": {
37-
"php": ">= 7.4",
37+
"php": "^8.0",
3838
"ext-json": "*",
39-
"illuminate/contracts": "^8.0|^9.0|^10.0",
40-
"illuminate/support": "^8.0|^9.0|^10.0",
39+
"illuminate/contracts": "^9.0|^10.0",
40+
"illuminate/support": "^9.0|^10.0",
4141
"laragraph/utils": "^2",
42-
"thecodingmachine/safe": "^1.1|^2.4",
42+
"thecodingmachine/safe": "^2.4",
4343
"webonyx/graphql-php": "^15"
4444
},
4545
"require-dev": {
@@ -50,8 +50,8 @@
5050
"mockery/mockery": "^1.2",
5151
"phpstan/phpstan": "1.10.18",
5252
"nunomaduro/larastan": "2.6.2",
53-
"orchestra/testbench": "^6.0|^7.0|^8.0",
54-
"phpunit/phpunit": "~8.0|^9",
53+
"orchestra/testbench": "^7.0|^8.0",
54+
"phpunit/phpunit": "^9",
5555
"thecodingmachine/phpstan-safe-rule": "^1"
5656
},
5757
"autoload": {
@@ -69,7 +69,7 @@
6969
"phpstan-baseline": "phpstan analyse --memory-limit=512M --generate-baseline",
7070
"lint": "php-cs-fixer fix --diff --dry-run",
7171
"fix-style": "php-cs-fixer fix",
72-
"tests": "phpunit --colors=always --verbose"
72+
"tests": "phpunit"
7373
},
7474
"extra": {
7575
"branch-alias": {

tests/Database/EmptyQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static function (array $result): array {
134134
/**
135135
* @return array<mixed>
136136
*/
137-
public function dataForEmptyQuery(): array
137+
public static function dataForEmptyQuery(): array
138138
{
139139
return [
140140
// completely empty request

tests/TestCase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Console\Command;
1111
use Illuminate\Http\JsonResponse;
1212
use Orchestra\Testbench\TestCase as BaseTestCase;
13-
use PHPUnit\Framework\Constraint\RegularExpression;
1413
use PHPUnit\Framework\ExpectationFailedException;
1514
use Rebing\GraphQL\GraphQLServiceProvider;
1615
use Rebing\GraphQL\Support\Facades\GraphQL;
@@ -243,14 +242,6 @@ private function formatSafeTrace(array $trace): string
243242
);
244243
}
245244

246-
/**
247-
* @todo Remove this method once we're PHPUnit 9+ only.
248-
*/
249-
public static function assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void
250-
{
251-
self::assertThat($string, new RegularExpression($pattern), $message);
252-
}
253-
254245
/**
255246
* @note Maybe can be removed in PHPUnit 10+ if https://github.com/sebastianbergmann/phpunit/pull/5231 gets merged and replaced with `assertObjectHasProperty`. For now uses suggested workaround from https://github.com/sebastianbergmann/phpunit/issues/4601#issuecomment-1418923160
256247
*

tests/Unit/Console/EnumMakeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testCommand(
3131
);
3232
}
3333

34-
public function dataForMakeCommand(): array
34+
public static function dataForMakeCommand(): array
3535
{
3636
return [
3737
'Example' => [

tests/Unit/Console/ExecutionMiddlewareMakeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testCommand(
2929
);
3030
}
3131

32-
public function dataForMakeCommand(): array
32+
public static function dataForMakeCommand(): array
3333
{
3434
return [
3535
'Example' => [

tests/Unit/Console/InputMakeCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testCommand(
3131
);
3232
}
3333

34-
public function dataForMakeCommand(): array
34+
public static function dataForMakeCommand(): array
3535
{
3636
return [
3737
'Example' => [

0 commit comments

Comments
 (0)