Skip to content

Commit 060f203

Browse files
authored
Merge pull request #1009 from cakephp/cakephp-version
Stop lying that CAKE_VERSION is a constant.
2 parents 5116f54 + a44559a commit 060f203

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Panel/EnvironmentPanel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
namespace DebugKit\Panel;
1616

17-
use Cake\Core\Configure;
1817
use Cake\Error\Debugger;
1918
use Cake\Event\EventInterface;
2019
use DebugKit\DebugInclude;
@@ -74,7 +73,6 @@ protected function _prepare(): array
7473
'CAKE_CORE_INCLUDE_PATH' => CAKE_CORE_INCLUDE_PATH,
7574
'CONFIG' => CONFIG,
7675
'CORE_PATH' => CORE_PATH,
77-
'CAKE_VERSION' => Configure::version(),
7876
'DS' => DS,
7977
'LOGS' => LOGS,
8078
'ROOT' => ROOT,

templates/element/environment_panel.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* @link https://cakephp.org CakePHP(tm) Project
1717
* @license https://www.opensource.org/licenses/mit-license.php MIT License
1818
*/
19+
use Cake\Core\Configure;
1920
use Cake\Error\Debugger;
2021
use function Cake\Core\h;
2122

@@ -31,7 +32,9 @@
3132
*/
3233
?>
3334
<div class="c-environment-panel">
34-
<h2>Application Constants</h2>
35+
<h2>CakePHP Version: <?= Configure::version() ?></h2>
36+
37+
<h3>Application Constants</h3>
3538

3639
<?php if (!empty($app)) : ?>
3740
<table class="c-debug-table">
@@ -56,7 +59,7 @@
5659
</div>
5760
<?php endif; ?>
5861

59-
<h2>CakePHP Constants</h2>
62+
<h3>CakePHP Constants</h3>
6063

6164
<?php if (!empty($cake)) : ?>
6265
<table class="c-debug-table">
@@ -81,7 +84,7 @@
8184
</div>
8285
<?php endif; ?>
8386

84-
<h2>INI Environment</h2>
87+
<h3>INI Environment</h3>
8588

8689
<?php if (!empty($ini)) : ?>
8790
<table class="c-debug-table">
@@ -106,7 +109,7 @@
106109
</div>
107110
<?php endif; ?>
108111

109-
<h2>PHP Environment</h2>
112+
<h3>PHP Environment</h3>
110113

111114
<?php if (!empty($php)) : ?>
112115
<table class="c-debug-table">
@@ -131,7 +134,7 @@
131134
</div>
132135
<?php endif; ?>
133136

134-
<h2>Included Files</h2>
137+
<h3>Included Files</h3>
135138

136139
<h4>Include Paths</h4>
137140
<?= $this->Toolbar->dumpNodes($includePaths) ?>

0 commit comments

Comments
 (0)