Skip to content

Commit 6a26b77

Browse files
committed
ConnectionPanel: added declare(strict_types=1)
1 parent 2de53ee commit 6a26b77

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Bridges/DatabaseTracy/templates/ConnectionPanel.panel.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Nette\Bridges\DatabaseTracy;
45

@@ -36,13 +37,13 @@ use Tracy;
3637
<table class="tracy-collapsed nette-DbConnectionPanel-explain">
3738
<tr>
3839
<?php foreach ($explain[0] as $col => $foo): ?>
39-
<th><?= htmlspecialchars($col, ENT_NOQUOTES, 'UTF-8') ?></th>
40+
<th><?= htmlspecialchars((string) $col, ENT_NOQUOTES, 'UTF-8') ?></th>
4041
<?php endforeach ?>
4142
</tr>
4243
<?php foreach ($explain as $row): ?>
4344
<tr>
4445
<?php foreach ($row as $col): ?>
45-
<td><?= htmlspecialchars($col, ENT_NOQUOTES, 'UTF-8') ?></td>
46+
<td><?= htmlspecialchars((string) $col, ENT_NOQUOTES, 'UTF-8') ?></td>
4647
<?php endforeach ?>
4748
</tr>
4849
<?php endforeach ?>

src/Bridges/DatabaseTracy/templates/ConnectionPanel.tab.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Nette\Bridges\DatabaseTracy;
45

0 commit comments

Comments
 (0)