From 6faf3c04e4f245a6e83dda18eb78f47cfb5f2940 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Mon, 16 Sep 2024 21:30:56 +0200 Subject: [PATCH 1/2] fix environment panel not working with CakePHP 5.1 --- src/Panel/EnvironmentPanel.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Panel/EnvironmentPanel.php b/src/Panel/EnvironmentPanel.php index 7257203c..da582fca 100644 --- a/src/Panel/EnvironmentPanel.php +++ b/src/Panel/EnvironmentPanel.php @@ -90,8 +90,13 @@ protected function _prepare(): array $var = get_defined_constants(true); $return['app'] = array_diff_key($var['user'], $return['cake'], $hiddenCakeConstants); + $includePaths = $this->_debug->includePaths(); + foreach ($includePaths as $k => $v) { + $includePaths[$k] = Debugger::exportVarAsNodes($v); + } + // Included files data - $return['includePaths'] = $this->_debug->includePaths(); + $return['includePaths'] = $includePaths; $return['includedFiles'] = $this->prepareIncludedFiles(); return $return; From 9e0bdf6d02d8f298bcc9e95ac7adedfe2aec8684 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Mon, 16 Sep 2024 21:44:50 +0200 Subject: [PATCH 2/2] fix styling for debugger dumped variables --- webroot/css/style.css | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webroot/css/style.css b/webroot/css/style.css index e74337bf..5d020196 100644 --- a/webroot/css/style.css +++ b/webroot/css/style.css @@ -281,10 +281,6 @@ strong { text-align: left; } -/* Override styles in cake's default css */ -.c-debug-table .cake-debug-string { - margin-right: 48px; -} /* correct height to fit with environment panel */ .c-debug-table .cake-debug-copy { padding: 5px 6px;