From a31519429b8f7051183d26dee15e4268ad221485 Mon Sep 17 00:00:00 2001 From: Eirik Stanghelle Morland Date: Fri, 9 Aug 2024 09:04:53 +0200 Subject: [PATCH] Adjust error reporting for PHP 8.4 (#124) --- php-install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/php-install.sh b/php-install.sh index 0b29c7b..25f5f96 100644 --- a/php-install.sh +++ b/php-install.sh @@ -197,3 +197,12 @@ mv /tmp/symfony /usr/local/bin/symfony wget https://getcomposer.org/download/latest-2.2.x/composer.phar -O /tmp/composer22 chmod 755 /tmp/composer22 mv /tmp/composer22 /usr/local/bin/composer22 + +case $PHP_VERSION in + 8.4*) + echo "error_reporting = E_ALL & ~E_DEPRECATED" > /usr/local/etc/php/conf.d/errors.ini + ;; + *) + echo "No adjustment of error reporting on $PHP_VERSION" + ;; +esac