-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracy\IBarPanel::getTab() returning non-string breaks Tracy silently in hard to debug way #361
Comments
It should catch TypeError and convert them to error report in panel Lines 146 to 159 in 422bff7
|
|
dg
added a commit
that referenced
this issue
Apr 1, 2019
dg
added a commit
that referenced
this issue
Apr 1, 2019
Thank you! |
you're welcome |
dg
added a commit
that referenced
this issue
Apr 2, 2019
dg
added a commit
that referenced
this issue
Apr 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.phtml
bar.phtml
usestrim()
which requiresstring
bar.phtml
is rendered in a way which suppresses all errors and does not catchTypeError
.There are actually two issues:
Nette\Utils\Html
The second one being far more important.
Steps To Reproduce
Return
Nette\Utils\Html
fromTracy\IBarPanel::getTab()
Expected Behavior
Tracy bar should not silently stop working without any information from user.
Possible Solution
The text was updated successfully, but these errors were encountered: