Skip to content

Commit 273b28b

Browse files
committed
Minimal version is PHP 7.4
1 parent 26d9bcc commit 273b28b

14 files changed

+1695
-1080
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
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'

.php-cs-fixer.dist.php

Lines changed: 4 additions & 4 deletions
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,

composer.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"name": "ecodev/graphql-doctrine",
33
"description": "Declare GraphQL types from Doctrine entities and annotations",
44
"type": "library",
5+
"license": "MIT",
6+
"config": {
7+
"sort-packages": true,
8+
"allow-plugins": {
9+
"composer/package-versions-deprecated": true
10+
}
11+
},
512
"keywords": [
613
"api",
714
"graphql",
@@ -29,22 +36,17 @@
2936
}
3037
},
3138
"require": {
32-
"php": "^7.2 || ^8.0",
39+
"php": "^7.4 || ^8.0",
40+
"doctrine/orm": "^2.11",
3341
"doctrine/persistence": "^1.3 || ^2.0",
34-
"doctrine/orm": "^2.7",
35-
"psr/container": "^1.0",
36-
"webonyx/graphql-php": "^14.3"
42+
"psr/container": "^1.1",
43+
"symfony/cache": "^5.4",
44+
"webonyx/graphql-php": "^14.11"
3745
},
3846
"require-dev": {
47+
"friendsofphp/php-cs-fixer": "@stable",
3948
"laminas/laminas-servicemanager": "@stable",
4049
"phpstan/phpstan": "@stable",
41-
"phpunit/phpunit": "@stable",
42-
"friendsofphp/php-cs-fixer": "@stable"
43-
},
44-
"license": "MIT",
45-
"config": {
46-
"allow-plugins": {
47-
"composer/package-versions-deprecated": true
48-
}
50+
"phpunit/phpunit": "@stable"
4951
}
5052
}

0 commit comments

Comments
 (0)