Skip to content

Commit d9b0ede

Browse files
committed
SessionPanel: added declare(strict_types=1)
1 parent 84d2b0a commit d9b0ede

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Bridges/HttpTracy/templates/SessionPanel.panel.phtml

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

34
namespace Nette\Bridges\HttpTracy;
45

@@ -36,7 +37,7 @@ use Tracy\Dumper;
3637
} elseif ($k === '_tracy') {
3738
continue;
3839
}
39-
echo '<tr><th>', htmlspecialchars($k, ENT_IGNORE, 'UTF-8'), '</th><td>', Dumper::toHtml($v, [Dumper::LIVE => true]), "</td></tr>\n";
40+
echo '<tr><th>', htmlspecialchars((string) $k, ENT_IGNORE, 'UTF-8'), '</th><td>', Dumper::toHtml($v, [Dumper::LIVE => true]), "</td></tr>\n";
4041
}?>
4142
</table>
4243
<?php endif ?>

src/Bridges/HttpTracy/templates/SessionPanel.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\HttpTracy;
45

0 commit comments

Comments
 (0)