Skip to content

Commit

Permalink
⬆️ drop support for PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Jan 2, 2024
1 parent db9dcc1 commit 972ca06
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ on:
push: ~

jobs:
cs-fixer:
runs-on: ubuntu-22.04
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fix CS

tests:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- description: 'lowest'
php: '7.2'
composer_option: '--prefer-lowest'
- description: '7.3'
php: '7.3'
- description: '7.4'
php: '7.4'
- description: '8.0'
php: '8.0'
- description: '8.1'
php: '8.1'
Expand Down
10 changes: 4 additions & 6 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
->in([__DIR__.'/src', __DIR__.'/tests'])
;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit75Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
'declare_strict_types' => false,
'native_function_invocation' => true,
'native_function_invocation' => ['include' => ['@all']],
'final_class' => true,
])
->setFinder($finder)
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
}
],
"require": {
"php": "^7.1 || ^8.0",
"doctrine/orm": "^2.6",
"php": "^8.0",
"doctrine/orm": "^2.7",
"pugx/shortid-php": "^1.0"
},
"require-dev": {
"dg/bypass-finals": "^1.3",
"phpunit/phpunit": "^8.5 || ^9.5"
"dg/bypass-finals": "^1.5",
"phpunit/phpunit": "^9.6"
},
"config": {
"bin-dir": "bin"
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
"dev-master": "1.x-dev"
}
},
"autoload": {
Expand Down

0 comments on commit 972ca06

Please sign in to comment.