Skip to content

Commit

Permalink
chore: Drop support for PHP 7.4 and 8.0
Browse files Browse the repository at this point in the history
Both PHP versions reached EOL and PHP 8.1 will soon too.
  • Loading branch information
theofidry committed Oct 1, 2023
1 parent d0e7e85 commit eb2bfa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,21 @@ jobs:
fail-fast: false
matrix:
#Stable supported versions
php: ['7.4', '8.0', '8.1', '8.2']
php: ['8.1', '8.2']
symfony: ['5.4.*', '6.2.*']
composer-flags: ['--prefer-stable']
can-fail: [false]
exclude:
- php: '7.4'
symfony: '6.2.*'
- php: '8.0'
- php: '8.1'
symfony: '6.2.*'
include:
# Lowest supported versions
- php: '7.2'
- php: '8.1'
symfony: '5.4.*'
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
# EOL PHP versions
- php: '7.2'
symfony: '5.4.*'
composer-flags: '--prefer-stable'
can-fail: false
- php: '7.3'
symfony: '5.4.*'
composer-flags: '--prefer-stable'
can-fail: false
# Development versions
- php: '8.2'
- php: '8.3'
symfony: '6.3.x-dev'
composer-flags: ''
can-fail: true
Expand All @@ -49,10 +38,6 @@ jobs:
- name: "checkout"
uses: "actions/checkout@v2"

- name: "build the PHP7 environment"
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} php"
if: startsWith(matrix.php, '7')

- name: "build the PHP8 environment"
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.2.0' php"
if: startsWith(matrix.php, '8')
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
}
],
"require": {
"php": ">=7.2",
"php": "^8.1",
"doctrine/doctrine-bundle": "^2.0.8",
"doctrine/orm": "^2.7.1",
"league/oauth2-server": "^8.3",
"nyholm/psr7": "^1.4",
"psr/http-factory": "^1.0",
"symfony/event-dispatcher": "^5.4|^6.2",
"symfony/framework-bundle": "^5.4|^6.2",
"symfony/polyfill-php81": "^1.22",
"symfony/psr-http-message-bridge": "^2.0",
"symfony/security-bundle": "^5.4|^6.2"
},
Expand Down

0 comments on commit eb2bfa6

Please sign in to comment.