Skip to content

Commit 545d6bf

Browse files
authored
feat: set minimum php version to 8.4 (#257)
1 parent b1890b2 commit 545d6bf

File tree

7 files changed

+440
-796
lines changed

7 files changed

+440
-796
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ jobs:
2222
os:
2323
- ubuntu-latest
2424
php-version:
25-
- '7.4'
26-
- '8.0'
27-
- '8.1'
28-
- '8.2'
29-
- '8.3'
3025
- '8.4'
3126

3227
steps:

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHPVERSION="7.4"
1+
ARG PHPVERSION="8.4"
22
FROM php:$PHPVERSION-cli-alpine
33

44
RUN apk --update --no-cache add \
@@ -8,6 +8,13 @@ RUN apk --update --no-cache add \
88
RUN docker-php-ext-install \
99
pdo_mysql
1010

11+
RUN apk add --no-cache \
12+
$PHPIZE_DEPS \
13+
linux-headers \
14+
&& pecl install xdebug-3.4.2 \
15+
&& docker-php-ext-enable xdebug \
16+
&& rm -rf /tmp/* /var/cache/apk/*
17+
1118
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
1219

1320
WORKDIR /app

composer.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,27 @@
2121
}
2222
},
2323
"require": {
24-
"php": ">=7.4.0",
24+
"php": ">=8.4.0",
2525
"ext-openssl": "*",
2626
"ext-session": "*",
2727
"ext-mbstring": "*"
2828
},
2929
"require-dev": {
30-
"friendsofphp/php-cs-fixer": "^2.16 || ^3.0",
31-
"phpunit/phpunit": "^9.1 || ^10.0 || ^11.0",
32-
"predis/predis": "^1.1 || ^2.0",
33-
"rancoud/database": "^6.0",
34-
"squizlabs/php_codesniffer": "^3.5"
30+
"friendsofphp/php-cs-fixer": "^3.0",
31+
"phpunit/phpunit": "^12.0",
32+
"predis/predis": "^2.0",
33+
"rancoud/database": "^6.0"
3534
},
3635
"scripts": {
3736
"ci": [
3837
"@lint",
3938
"@test"
4039
],
4140
"lint": [
42-
"phpcbf",
4341
"php-cs-fixer fix"
4442
],
4543
"test": [
46-
"phpdbg -qrr vendor/bin/phpunit --colors --coverage-html ./coverage --coverage-text --coverage-clover ./coverage/clover.xml -dmemory_limit=256M"
44+
"phpunit --colors --coverage-html ./coverage"
4745
]
4846
}
4947
}

0 commit comments

Comments
 (0)