diff --git a/system/Debug/Exceptions.php b/system/Debug/Exceptions.php index 2670732d19d0..bcce589db894 100644 --- a/system/Debug/Exceptions.php +++ b/system/Debug/Exceptions.php @@ -80,6 +80,8 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac $this->response = $response; // workaround for upgraded users + // This causes "Deprecated: Creation of dynamic property" in PHP 8.2. + // @TODO remove this after dropping PHP 8.1 support. if (! isset($this->config->sensitiveDataInTrace)) { $this->config->sensitiveDataInTrace = []; } diff --git a/user_guide_src/source/installation/upgrade_430.rst b/user_guide_src/source/installation/upgrade_430.rst index 36312248c931..785ff111a260 100644 --- a/user_guide_src/source/installation/upgrade_430.rst +++ b/user_guide_src/source/installation/upgrade_430.rst @@ -33,7 +33,23 @@ The following files received significant changes and Config Files ============ -- **app/Config/Kint.php** has been updated for Kint 5.0. You need to replace ``Kint\Renderer\Renderer`` with ``Kint\Renderer\AbstractRenderer`` and replace ``Renderer::SORT_FULL`` with ``AbstractRenderer::SORT_FULL``. +app/Config/Kint.php +------------------- + +- **app/Config/Kint.php** has been updated for Kint 5.0. +- You need to replace: + + - ``Kint\Renderer\Renderer`` with ``Kint\Renderer\AbstractRenderer`` + - ``Renderer::SORT_FULL`` with ``AbstractRenderer::SORT_FULL`` + +app/Config/Exceptions.php +------------------------- + +- If you are using PHP 8.2, you need to add new properties ``$logDeprecations`` and ``$deprecationLogLevel``. + +Mock Config Classes +------------------- + - If you are using the following Mock Config classes in testing, you need to update the corresponding Config files in **app/Config**: - ``MockAppConfig`` (``Config\App``)