Skip to content

Commit 49f3da0

Browse files
committed
feature #164 chore: Drop support for PHP 7.4 and 8.0 (theofidry)
This PR was squashed before being merged into the 0.4-dev branch. Discussion ---------- chore: Drop support for PHP 7.4 and 8.0 Both PHP versions reached EOL and PHP 8.1 will soon too. Commits ------- 7126cae bump the default version of the docker image to 8.1 eb2bfa6 chore: Drop support for PHP 7.4 and 8.0
2 parents cd33552 + 7126cae commit 49f3da0

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

.github/workflows/unit-tests.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,21 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
#Stable supported versions
18-
php: ['7.4', '8.0', '8.1', '8.2']
18+
php: ['8.1', '8.2']
1919
symfony: ['5.4.*', '6.2.*']
2020
composer-flags: ['--prefer-stable']
2121
can-fail: [false]
2222
exclude:
23-
- php: '7.4'
24-
symfony: '6.2.*'
25-
- php: '8.0'
23+
- php: '8.1'
2624
symfony: '6.2.*'
2725
include:
2826
# Lowest supported versions
29-
- php: '7.2'
27+
- php: '8.1'
3028
symfony: '5.4.*'
3129
composer-flags: '--prefer-stable --prefer-lowest'
3230
can-fail: false
33-
# EOL PHP versions
34-
- php: '7.2'
35-
symfony: '5.4.*'
36-
composer-flags: '--prefer-stable'
37-
can-fail: false
38-
- php: '7.3'
39-
symfony: '5.4.*'
40-
composer-flags: '--prefer-stable'
41-
can-fail: false
4231
# Development versions
43-
- php: '8.2'
32+
- php: '8.3'
4433
symfony: '6.3.x-dev'
4534
composer-flags: ''
4635
can-fail: true
@@ -54,10 +43,6 @@ jobs:
5443
- name: "checkout"
5544
uses: "actions/checkout@v4"
5645

57-
- name: "build the PHP7 environment"
58-
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} php"
59-
if: startsWith(matrix.php, '7')
60-
6146
- name: "build the PHP8 environment"
6247
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.2.0' php"
6348
if: startsWith(matrix.php, '8')

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.2",
19+
"php": "^8.1",
2020
"doctrine/doctrine-bundle": "^2.0.8",
2121
"doctrine/orm": "^2.7.1",
2222
"league/oauth2-server": "^8.3",
2323
"nyholm/psr7": "^1.4",
2424
"psr/http-factory": "^1.0",
2525
"symfony/event-dispatcher": "^5.4|^6.2",
2626
"symfony/framework-bundle": "^5.4|^6.2",
27-
"symfony/polyfill-php81": "^1.22",
2827
"symfony/psr-http-message-bridge": "^2.0",
2928
"symfony/security-bundle": "^5.4|^6.2"
3029
},

dev/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_VERSION=7.4
1+
ARG PHP_VERSION=8.1
22

33
FROM php:${PHP_VERSION}-cli-alpine
44
LABEL maintainer="Petar Obradović <petar.obradovic@trikoder.net>"

0 commit comments

Comments
 (0)