Skip to content

Commit

Permalink
chore: remove support of PHP 7.4 and 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Mar 10, 2024
1 parent b1e870e commit f1e2c1f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ jobs:

steps:
- uses: actions/checkout@master

- name: Delete composer files to avoid installing dependencies
run: rm -v composer.json

- name: PHP-CS-Fixer
uses: docker://jakzal/phpqa:1.80.0-php7.4-alpine
uses: docker://jakzal/phpqa:1.96.3-php8.2-alpine
with:
args: php-cs-fixer --dry-run --diff --no-interaction --ansi fix

Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ jobs:
strategy:
fail-fast: false
matrix:
# Symfony 5.4 requires PHP >= 7.2, it will be installed on PHP 7.4
# Symfony 6.4 requires PHP >= 8.0, it will be installed on PHP >= 8.0
# Symfony 7.0 requires PHP >= 8.2, it will be installed on PHP >= 8.2
php-version: ['8.2']
php-version: ['']
composer-flags: ['']
symfony-version: ['']
mysql-client: [ "default-mysql-client" ]
include:
- php-version: 7.4
- php-version: 8.1
# Use "update" instead of "install" since it allows using the "--prefer-lowest" option
composer-flags: "update --prefer-lowest"
- php-version: 7.4
# add a specific job to test 5.4 for all Symfony packages
symfony-version: "^5.4"
- php-version: 8.1
# add a specific job to test ^5.4 for all Symfony packages
symfony-version: "^5.4"
Expand All @@ -34,7 +28,6 @@ jobs:
- php-version: 8.2
# add a specific job to test ^6.4 for all Symfony packages
symfony-version: "^6.4"
- php-version: 8.2
- php-version: 8.2
symfony-version: "^7.0"
- php-version: 8.3
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"doctrine/common": "^2.13 || ^3.0",
"doctrine/persistence": "^1.3.3 || ^2.0 || ^3.0",
"symfony/deprecation-contracts": "^2.1 || ^3.0",
Expand Down
3 changes: 0 additions & 3 deletions tests/Test/ConfigMongodbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ protected function setUp(): void
if (!class_exists(DoctrineMongoDBBundle::class)) {
$this->markTestSkipped('Need doctrine/mongodb-odm-bundle package.');
}
if (version_compare(\PHP_VERSION, '8.1.0') < 0) {
$this->markTestSkipped('MongoDB Tests doesn\'t support Outdated PHP Version. <8.1.0');
}

parent::setUp();

Expand Down

0 comments on commit f1e2c1f

Please sign in to comment.