Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2: Add custom error handler if needed #80

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/4.5.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ docker exec install_dependencies composer recipes:install ibexa/${PROJECT_EDITIO
# Enable FriendsOfBehat SymfonyExtension in the Behat env
sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/bundles.php

if [[ $PHP_IMAGE == *"8.2"* ]]; 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

echo "> Display composer.json for debugging"
cat composer.json

Expand Down
6 changes: 6 additions & 0 deletions bin/4.6.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ docker exec install_dependencies composer update --no-scripts
# Enable FriendsOfBehat SymfonyExtension in the Behat env
sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/bundles.php

if [[ $PHP_IMAGE == *"8.2"* ]]; 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

echo "> Display composer.json for debugging"
cat composer.json

Expand Down
6 changes: 6 additions & 0 deletions bin/^3.3.x-dev/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/
# Create a default Behat configuration file
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml

if [[ $PHP_IMAGE == *"8.2"* ]]; 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

echo "> Display composer.json for debugging"
cat composer.json

Expand Down
6 changes: 6 additions & 0 deletions bin/stable/prepare_project_edition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ sudo sed -i "s/\['test' => true\]/\['test' => true, 'behat' => true\]/g" config/
# Create a default Behat configuration file
cp "behat_ibexa_${PROJECT_EDITION}.yaml" behat.yaml

if [[ $PHP_IMAGE == *"8.2"* ]]; 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

# Depenencies are installed and container can be removed
docker container stop install_dependencies
docker container rm install_dependencies
Expand Down
Loading