Skip to content

Commit 357eff5

Browse files
committed
Minimal version is PHP 7.4
1 parent 6a147b9 commit 357eff5

File tree

4 files changed

+900
-644
lines changed

4 files changed

+900
-644
lines changed

Diff for: .github/workflows/main.yml

-6
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ jobs:
66
strategy:
77
matrix:
88
php-version:
9-
- '7.2'
10-
- '7.3'
119
- '7.4'
1210
- '8.0'
1311
- '8.1'
@@ -31,10 +29,6 @@ jobs:
3129
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
3230
restore-keys: ${{ runner.os }}-composer-
3331

34-
- name: Remove lock for PHP 8
35-
if: matrix.php-version == '8.0' || matrix.php-version == '8.1'
36-
run: rm composer.lock
37-
3832
- name: Install dependencies
3933
run: composer install
4034

Diff for: .php-cs-fixer.dist.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'array_indentation' => true,
2121
'array_push' => true,
2222
'array_syntax' => ['syntax' => 'short'],
23-
'assign_null_coalescing_to_coalesce_equal' => false, // Require PHP 7.4
23+
'assign_null_coalescing_to_coalesce_equal' => true,
2424
'backtick_to_shell_exec' => true,
2525
'binary_operator_spaces' => true,
2626
'blank_line_after_namespace' => true,
@@ -73,7 +73,7 @@
7373
'global_namespace_import' => true,
7474
'group_import' => false, // I feel it makes the code actually harder to read
7575
'header_comment' => false, // We don't use common header in all our files
76-
'heredoc_indentation' => false, // Requires PHP >= 7.3
76+
'heredoc_indentation' => true,
7777
'heredoc_to_nowdoc' => false, // We often use variable in heredoc
7878
'implode_call' => true,
7979
'include' => true,
@@ -246,11 +246,11 @@
246246
'ternary_operator_spaces' => true,
247247
'ternary_to_elvis_operator' => true,
248248
'ternary_to_null_coalescing' => true,
249-
'trailing_comma_in_multiline' => false, // Require PHP 7.3
249+
'trailing_comma_in_multiline' => true,
250250
'trim_array_spaces' => true,
251251
'types_spaces' => true,
252252
'unary_operator_spaces' => true,
253-
'use_arrow_functions' => false, // Require PHP 7.4
253+
'use_arrow_functions' => true,
254254
'visibility_required' => true,
255255
'void_return' => true,
256256
'whitespace_after_comma_in_array' => true,

Diff for: composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424
}
2525
},
2626
"require": {
27-
"php": "^7.2 || ^8.0",
27+
"php": "^7.4 || ^8.0",
2828
"ext-json": "*",
2929
"psr/http-server-middleware": "^1.0",
30-
"webonyx/graphql-php": "^14.3"
30+
"webonyx/graphql-php": "^14.11"
3131
},
32+
"license": "MIT",
3233
"require-dev": {
34+
"friendsofphp/php-cs-fixer": "@stable",
3335
"laminas/laminas-diactoros": "@stable",
3436
"phpstan/phpstan": "@stable",
35-
"phpunit/phpunit": "@stable",
36-
"friendsofphp/php-cs-fixer": "@stable"
37-
},
38-
"license": "MIT"
37+
"phpunit/phpunit": "@stable"
38+
}
3939
}

0 commit comments

Comments
 (0)