From e297ff137fa0c2c2fcba94645ea74827020e46d8 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 12 Jan 2023 10:48:06 +0900 Subject: [PATCH 1/3] docs: add comment --- system/Debug/Exceptions.php | 2 ++ 1 file changed, 2 insertions(+) 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 = []; } From c5664b2d97eb5ea1953a53c71ca2c72eab519499 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 12 Jan 2023 10:48:31 +0900 Subject: [PATCH 2/3] docs: make it easier to read how to make changes in Config Files --- user_guide_src/source/installation/upgrade_430.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/user_guide_src/source/installation/upgrade_430.rst b/user_guide_src/source/installation/upgrade_430.rst index 36312248c931..4e510fc64607 100644 --- a/user_guide_src/source/installation/upgrade_430.rst +++ b/user_guide_src/source/installation/upgrade_430.rst @@ -33,7 +33,18 @@ 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`` + +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``) From 1c270013475eeef53e759a8d0cd6ba5ecaee9d9c Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 12 Jan 2023 10:51:59 +0900 Subject: [PATCH 3/3] docs: add missing instruction for Config/Exceptions.php --- user_guide_src/source/installation/upgrade_430.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/user_guide_src/source/installation/upgrade_430.rst b/user_guide_src/source/installation/upgrade_430.rst index 4e510fc64607..785ff111a260 100644 --- a/user_guide_src/source/installation/upgrade_430.rst +++ b/user_guide_src/source/installation/upgrade_430.rst @@ -42,6 +42,11 @@ app/Config/Kint.php - ``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 -------------------