Skip to content

Commit 5764751

Browse files
committed
By default test on PHP 8.4
The default test environment and CI runs test suite on PHP 8.4. PHP 8.4 compatible Xdebug 3.4.0beta1 has been released by the Xdebug team. It was installed inside the to make coverage collection possible. One stable version is available, we can migrate to it instead. Composer and PHPStan were updated to the most recent stable releases to resolve left-over PHP 8.4 deprecation notices and fatal errors.
1 parent 7461852 commit 5764751

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: all clean docker-build docker-images help lint lint-fix repl shell test test-static test-unit bump bump-dev process-reports
22

3-
IMAGE ?= php_8_3
3+
IMAGE ?= php_8_4
44
PHP = docker compose run --rm php
55

66
all: test

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": ">=5.3.0"
2424
},
2525
"require-dev": {
26-
"phpstan/phpstan": "1.12.0",
26+
"phpstan/phpstan": "1.12.11",
2727
"phpunit/phpunit": "^9.5.20",
2828
"squizlabs/php_codesniffer": "3.*",
2929
"symfony/yaml": "^5.4.40",

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
php:
3-
build: ./docker/image/${IMAGE:-php_8_3}
3+
build: ./docker/image/${IMAGE:-php_8_4}
44
volumes:
55
- .:/app
66
- ${COMPOSER_HOME:-$HOME/.composer}:/tmp

docker/image/php_8_4/Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.4-rc-cli
1+
FROM php:8.4-cli
22

33
RUN apt-get update && apt-get install -y \
44
bash \
@@ -7,6 +7,10 @@ RUN apt-get update && apt-get install -y \
77
zip \
88
wget
99

10-
COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer
10+
RUN pecl install xdebug-3.4.0beta1
11+
12+
RUN docker-php-ext-enable xdebug
13+
14+
COPY --from=composer:2.8 /usr/bin/composer /usr/bin/composer
1115

1216
WORKDIR /app

0 commit comments

Comments
 (0)