Skip to content

Commit e983247

Browse files
committedMay 10, 2024
ErrorHandler
1 parent 86bf4d8 commit e983247

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎bin/ci/test.sh

+6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ 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+
if [[ $PHP_IMAGE == *"8.2"* ]] || [[ $PHP_IMAGE == *"8.3"* ]]; then
68+
echo "> Set PHP 8.2+ Ibexa error handler to avoid deprecations"
69+
docker exec install_dependencies composer config extra.runtime.error_handler "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler"
70+
docker exec install_dependencies composer dump-autoload
71+
fi
72+
6773
printf "\Integration: Behat testing on ibexa_php:latest and ibexa_php:latest-node with eZ Platform\n"
6874
cd volumes/ezplatform
6975

0 commit comments

Comments
 (0)