Skip to content

Commit 100022e

Browse files
authored
feat: drop php 7.4 support (#23)
1 parent b27a5e6 commit 100022e

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

.github/workflows/autoformat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
coverage: none
1818
extensions: mbstring
19-
php-version: 7.4
19+
php-version: 8.0
2020

2121
- run: composer install --no-interaction --no-progress --no-suggest
2222

@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
coverage: none
5454
extensions: mbstring
55-
php-version: 7.4
55+
php-version: 8.0
5656

5757
- run: composer install --no-interaction --no-progress --no-suggest
5858

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
coverage: none
2525
extensions: mbstring
26-
php-version: 7.4
26+
php-version: 8.0
2727

2828
- name: "Validate composer.json and composer.lock"
2929
run: composer validate --strict
@@ -41,7 +41,7 @@ jobs:
4141
uses: shivammathur/setup-php@v2
4242
with:
4343
coverage: none
44-
php-version: 7.4
44+
php-version: 8.0
4545

4646
- name: "Install dependencies with composer"
4747
run: composer install --no-interaction --no-progress
@@ -57,7 +57,6 @@ jobs:
5757
strategy:
5858
matrix:
5959
php-version:
60-
- "7.4"
6160
- "8.0"
6261
- "8.1"
6362

@@ -94,7 +93,7 @@ jobs:
9493
uses: shivammathur/setup-php@v2
9594
with:
9695
coverage: pcov
97-
php-version: 7.4
96+
php-version: 8.0
9897

9998
- name: "Install dependencies with composer"
10099
run: composer install --no-interaction --no-progress

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^7.4 || ^8",
17+
"php": "^8",
1818
"ext-json": "*",
1919
"egulias/email-validator": "^2.1.17 || ^3",
2020
"spatie/regex": "^1.4 || ^2 || ^3",

src/DateScalar.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use GraphQL\Utils\Utils;
1313
use function is_string;
1414
use function Safe\preg_match;
15-
use function Safe\substr;
1615

1716
abstract class DateScalar extends ScalarType
1817
{

tests/MixedScalarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected function executeQueryWithJsonVariable(string $jsonLiteral): ExecutionR
183183
/** @var array<string, mixed> $json */
184184
$json = \Safe\json_decode(/** @lang JSON */ <<<JSON
185185
{
186-
"var": $jsonLiteral
186+
"var": ${jsonLiteral}
187187
}
188188
JSON
189189
,

tests/NullScalarTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function executeQueryWithJsonVariable(string $jsonLiteral): ExecutionR
105105
/** @var array{var: mixed} $json */
106106
$json = \Safe\json_decode(/** @lang JSON */ <<<JSON
107107
{
108-
"var": $jsonLiteral
108+
"var": ${jsonLiteral}
109109
}
110110
JSON,
111111
true

0 commit comments

Comments
 (0)