Skip to content

Commit 45a7de5

Browse files
authored
Merge pull request #1026 from cakephp/5.x-fix-environment-panel
fix environment panel not working with CakePHP 5.1
2 parents 9df73d2 + 9e0bdf6 commit 45a7de5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: src/Panel/EnvironmentPanel.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ protected function _prepare(): array
9090
$var = get_defined_constants(true);
9191
$return['app'] = array_diff_key($var['user'], $return['cake'], $hiddenCakeConstants);
9292

93+
$includePaths = $this->_debug->includePaths();
94+
foreach ($includePaths as $k => $v) {
95+
$includePaths[$k] = Debugger::exportVarAsNodes($v);
96+
}
97+
9398
// Included files data
94-
$return['includePaths'] = $this->_debug->includePaths();
99+
$return['includePaths'] = $includePaths;
95100
$return['includedFiles'] = $this->prepareIncludedFiles();
96101

97102
return $return;

Diff for: webroot/css/style.css

-4
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ strong {
281281
text-align: left;
282282
}
283283

284-
/* Override styles in cake's default css */
285-
.c-debug-table .cake-debug-string {
286-
margin-right: 48px;
287-
}
288284
/* correct height to fit with environment panel */
289285
.c-debug-table .cake-debug-copy {
290286
padding: 5px 6px;

0 commit comments

Comments
 (0)