From 716fbc8b9f30db40fd9736063195f57b7430a8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Szo=C5=82tysek?= Date: Fri, 10 May 2024 15:52:11 +0200 Subject: [PATCH] ErrorHandler --- bin/ci/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ci/test.sh b/bin/ci/test.sh index c15971e..c532b07 100755 --- a/bin/ci/test.sh +++ b/bin/ci/test.sh @@ -71,6 +71,12 @@ export COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/redis.yml:doc/docker/sel export APP_ENV="behat" APP_DEBUG="1" export PHP_IMAGE="ibexa_php:latest-node" PHP_IMAGE_DEV="ibexa_php:latest-node" +if echo "$PHP_IMAGE" | grep -q '8.3'; then + echo "> Set PHP 8.2+ Ibexa error handler to avoid deprecations" + docker exec install_dependencies composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler" + docker exec install_dependencies composer dump-autoload +fi + docker-compose --env-file .env up -d --build --force-recreate echo '> Workaround for test issues: Change ownership of files inside docker container' docker-compose --env-file=.env exec -T app sh -c 'chown -R www-data:www-data /var/www'