Version: 2.6.1
Bug Description
Tracy\IBarPanel::getTab() returning non-string breaks Tracy silently in hard to debug way due to
declare(strict_types=1) in bar.phtml
bar.phtml uses trim() which requires string
bar.phtml is rendered in a way which suppresses all errors and does not catch TypeError.
There are actually two issues:
- broken support for
Nette\Utils\Html
- failing in way which makes it hard to debug.
The second one being far more important.
Steps To Reproduce
Return Nette\Utils\Html from Tracy\IBarPanel::getTab()
Expected Behavior
Tracy bar should not silently stop working without any information from user.
Possible Solution
Version: 2.6.1
Bug Description
Tracy\IBarPanel::getTab() returning non-string breaks Tracy silently in hard to debug way due to
declare(strict_types=1)inbar.phtmlbar.phtmlusestrim()which requiresstringbar.phtmlis rendered in a way which suppresses all errors and does not catchTypeError.There are actually two issues:
Nette\Utils\HtmlThe second one being far more important.
Steps To Reproduce
Return
Nette\Utils\HtmlfromTracy\IBarPanel::getTab()Expected Behavior
Tracy bar should not silently stop working without any information from user.
Possible Solution