Skip to content

Commit

Permalink
Minimal version is PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Feb 15, 2022
1 parent 6a147b9 commit 357eff5
Show file tree
Hide file tree
Showing 4 changed files with 900 additions and 644 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
strategy:
matrix:
php-version:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
Expand All @@ -31,10 +29,6 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Remove lock for PHP 8
if: matrix.php-version == '8.0' || matrix.php-version == '8.1'
run: rm composer.lock

- name: Install dependencies
run: composer install

Expand Down
8 changes: 4 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'array_indentation' => true,
'array_push' => true,
'array_syntax' => ['syntax' => 'short'],
'assign_null_coalescing_to_coalesce_equal' => false, // Require PHP 7.4
'assign_null_coalescing_to_coalesce_equal' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
Expand Down Expand Up @@ -73,7 +73,7 @@
'global_namespace_import' => true,
'group_import' => false, // I feel it makes the code actually harder to read
'header_comment' => false, // We don't use common header in all our files
'heredoc_indentation' => false, // Requires PHP >= 7.3
'heredoc_indentation' => true,
'heredoc_to_nowdoc' => false, // We often use variable in heredoc
'implode_call' => true,
'include' => true,
Expand Down Expand Up @@ -246,11 +246,11 @@
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline' => false, // Require PHP 7.3
'trailing_comma_in_multiline' => true,
'trim_array_spaces' => true,
'types_spaces' => true,
'unary_operator_spaces' => true,
'use_arrow_functions' => false, // Require PHP 7.4
'use_arrow_functions' => true,
'visibility_required' => true,
'void_return' => true,
'whitespace_after_comma_in_array' => true,
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
}
},
"require": {
"php": "^7.2 || ^8.0",
"php": "^7.4 || ^8.0",
"ext-json": "*",
"psr/http-server-middleware": "^1.0",
"webonyx/graphql-php": "^14.3"
"webonyx/graphql-php": "^14.11"
},
"license": "MIT",
"require-dev": {
"friendsofphp/php-cs-fixer": "@stable",
"laminas/laminas-diactoros": "@stable",
"phpstan/phpstan": "@stable",
"phpunit/phpunit": "@stable",
"friendsofphp/php-cs-fixer": "@stable"
},
"license": "MIT"
"phpunit/phpunit": "@stable"
}
}
Loading

0 comments on commit 357eff5

Please sign in to comment.