Skip to content

Commit f23fc80

Browse files
authored
Match host PHP version to Docker (8.2) to fix blackbox tests (#200)
composer install on the host (PHP 8.4) pulls doctrine/instantiator 2.x which uses typed constants (PHP 8.3+ feature). Since the blackbox tests run inside a PHP 8.2 Docker container, the mock of \Redis triggers a parse error when loading doctrine/instantiator. Use PHP 8.2 on the host so Composer resolves dependencies compatible with the Docker runtime. Signed-off-by: Simon Podlipsky <simon@podlipsky.net>
1 parent d52fac3 commit f23fc80

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/blackbox.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup PHP
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: 8.4
25+
php-version: 8.2
2626
coverage: none
2727
- name: Login to Docker Hub
2828
continue-on-error: true
@@ -41,6 +41,3 @@ jobs:
4141
run: docker compose run phpunit env ADAPTER=apcng vendor/bin/phpunit tests/Test/
4242
- name: Run Blackbox with Redis
4343
run: docker compose run phpunit env ADAPTER=redis vendor/bin/phpunit tests/Test/
44-
45-
46-

0 commit comments

Comments
 (0)