Skip to content

Commit 5f9fa42

Browse files
committed
ErrorHandler
1 parent 86bf4d8 commit 5f9fa42

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/ci/test.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,19 @@ docker run -i --rm ibexa_php:latest-node bash -c "php -v; php -m"
6464
printf "\nVersion and module information about php build with enabled xdebug\n"
6565
docker run -i --rm -e ENABLE_XDEBUG="1" ibexa_php:latest-node bash -c "php -v; php -m"
6666

67-
printf "\Integration: Behat testing on ibexa_php:latest and ibexa_php:latest-node with eZ Platform\n"
67+
printf "\nIntegration: Behat testing on ibexa_php:latest and ibexa_php:latest-node with eZ Platform\n"
6868
cd volumes/ezplatform
6969

7070
export COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/redis.yml:doc/docker/selenium.yml"
7171
export APP_ENV="behat" APP_DEBUG="1"
7272
export PHP_IMAGE="ibexa_php:latest-node" PHP_IMAGE_DEV="ibexa_php:latest-node"
7373

74+
if echo "$PHP_IMAGE" | grep -q '8.3'; then
75+
printf "\nSet PHP 8.2+ Ibexa error handler to avoid deprecations\n"
76+
docker run -i --rm ibexa_php:latest-node bash -c 'composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler"'
77+
docker run -i --rm ibexa_php:latest-node bash -c "composer dump-autoload"
78+
fi
79+
7480
docker-compose --env-file .env up -d --build --force-recreate
7581
echo '> Workaround for test issues: Change ownership of files inside docker container'
7682
docker-compose --env-file=.env exec -T app sh -c 'chown -R www-data:www-data /var/www'

0 commit comments

Comments
 (0)