From 6eafd33093f587d927e4b7926fb57285daf7fc9f Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:04:18 +0200 Subject: [PATCH] Run DXP 3.3 on PHP 8.2 (#2387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs/getting_started/requirements.md: Add PHP 8.2 support --------- Co-authored-by: Tomasz DÄ…browski <64841871+dabrt@users.noreply.github.com> --- docs/getting_started/requirements.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/getting_started/requirements.md b/docs/getting_started/requirements.md index 7836f930f0..d2a168d7bb 100644 --- a/docs/getting_started/requirements.md +++ b/docs/getting_started/requirements.md @@ -154,11 +154,29 @@ Recommendation for production setups is to use Varnish/Fastly, Redis/Memcached, === "Ibexa DXP v3.3" + - 8.2 (see note below) - 8.1 - 8.0 (PHP 8.0 has reached its End of Life. Unless you have extended support from vendors like Debian or Zend, you should use PHP 8.1) - 7.4 (PHP 7.4 has reached its End of Life. Unless you have extended support from vendors like Debian or Zend, you should use PHP 8.1) - 7.3 (PHP 7.3 has reached its End of Life. Unless you have extended support from vendors like Debian or Zend, you should use PHP 8.1) + !!! note "Quiet PHP 8.2 deprecation notices from 3rd parties " + + To avoid PHP 8.2 deprecation notices appearing in outputs (and, for example, breaking REST answers), + add the following to your `composer.json` after installation: + + ```json + "runtime": { + "error_handler": "\\Ibexa\\Contracts\\Core\\MVC\\Symfony\\ErrorHandler\\Php82HideDeprecationsErrorHandler" + } + ``` + + Then run the following command: + + ```bash + composer dump-autoload + ``` + === "eZ Platform v2.5" - 7.1 (PHP 7.1 has reached its End of Life. Unless you have extended support from vendors like Debian or Zend, you should upgrade to Ibexa DXP v3.3 or v4.x)