Skip to content

Access to undeclared static property Fix #5533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Access to undeclared static property Fix #5533

wants to merge 1 commit into from

Conversation

Terrorboy
Copy link
Contributor

image


different from the specified

\vendor\kint-php\kint\src\Kint.php
image

@Terrorboy
Copy link
Contributor Author

If you don't fix this, the framework won't work

@kenjis
Copy link
Member

kenjis commented Jan 4, 2022

Sorry, "codeigniter4/framework" has out of dated composer.json.

The workaround is to revert the following changes:

--- a/system/CodeIgniter.php
+++ b/system/CodeIgniter.php
@@ -249,7 +249,7 @@ class CodeIgniter
          */
        $config = config('Config\Kint');

-        Kint::$max_depth          = $config->maxDepth;
+        Kint::$depth_limit        = $config->maxDepth;
        Kint::$display_called_from = $config->displayCalledFrom;
        Kint::$expanded            = $config->expanded;

@@ -261,7 +261,7 @@ class CodeIgniter
        RichRenderer::$folder = $config->richFolder;
        RichRenderer::$sort  = $config->richSort;
        if (! empty($config->richObjectPlugins) && is_array($config->richObjectPlugins)) {
-            RichRenderer::$object_plugins = $config->richObjectPlugins;
+            RichRenderer::$value_plugins = $config->richObjectPlugins;
        }
        if (! empty($config->richTabPlugins) && is_array($config->richTabPlugins)) {
            RichRenderer::$tab_plugins = $config->richTabPlugins;

@kenjis
Copy link
Member

kenjis commented Jan 4, 2022

See #5531

@kenjis kenjis closed this Jan 4, 2022
@Terrorboy
Copy link
Contributor Author

Has confirmed. thank you!

@kenjis
Copy link
Member

kenjis commented Jan 4, 2022

@Terrorboy This was fixed. v4.1.6 was re-released.

@Terrorboy
Copy link
Contributor Author

@kenjis Thanks for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants