Skip to content

Commit 04ec3cd

Browse files
authored
Merge pull request #7100 from kenjis/docs-upgrade-4.3-Config-Exception
docs: add missing instruction for Config/Exceptions in PHP 8.2
2 parents 6007713 + 1c27001 commit 04ec3cd

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

system/Debug/Exceptions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public function __construct(ExceptionsConfig $config, $request, ResponseInterfac
8080
$this->response = $response;
8181

8282
// workaround for upgraded users
83+
// This causes "Deprecated: Creation of dynamic property" in PHP 8.2.
84+
// @TODO remove this after dropping PHP 8.1 support.
8385
if (! isset($this->config->sensitiveDataInTrace)) {
8486
$this->config->sensitiveDataInTrace = [];
8587
}

user_guide_src/source/installation/upgrade_430.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,23 @@ The following files received significant changes and
3333
Config Files
3434
============
3535

36-
- **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``.
36+
app/Config/Kint.php
37+
-------------------
38+
39+
- **app/Config/Kint.php** has been updated for Kint 5.0.
40+
- You need to replace:
41+
42+
- ``Kint\Renderer\Renderer`` with ``Kint\Renderer\AbstractRenderer``
43+
- ``Renderer::SORT_FULL`` with ``AbstractRenderer::SORT_FULL``
44+
45+
app/Config/Exceptions.php
46+
-------------------------
47+
48+
- If you are using PHP 8.2, you need to add new properties ``$logDeprecations`` and ``$deprecationLogLevel``.
49+
50+
Mock Config Classes
51+
-------------------
52+
3753
- If you are using the following Mock Config classes in testing, you need to update the corresponding Config files in **app/Config**:
3854

3955
- ``MockAppConfig`` (``Config\App``)

0 commit comments

Comments
 (0)