Skip to content

Commit

Permalink
Merge pull request #7100 from kenjis/docs-upgrade-4.3-Config-Exception
Browse files Browse the repository at this point in the history
docs: add missing instruction for Config/Exceptions in PHP 8.2
  • Loading branch information
kenjis authored Jan 12, 2023
2 parents 6007713 + 1c27001 commit 04ec3cd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions system/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down
18 changes: 17 additions & 1 deletion user_guide_src/source/installation/upgrade_430.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``)
Expand Down

0 comments on commit 04ec3cd

Please sign in to comment.