Skip to content

Commit 6faf3c0

Browse files
committed
fix environment panel not working with CakePHP 5.1
1 parent 9df73d2 commit 6faf3c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Panel/EnvironmentPanel.php

Lines changed: 6 additions & 1 deletion
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;

0 commit comments

Comments
 (0)