Skip to content

Tracy\IBarPanel::getTab() returning non-string breaks Tracy silently in hard to debug way #361

@JanTvrdik

Description

@JanTvrdik

Version: 2.6.1

Bug Description

Tracy\IBarPanel::getTab() returning non-string breaks Tracy silently in hard to debug way due to

  1. declare(strict_types=1) in bar.phtml
  2. bar.phtml uses trim() which requires string
  3. bar.phtml is rendered in a way which suppresses all errors and does not catch TypeError.

There are actually two issues:

  1. broken support for Nette\Utils\Html
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions