Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarDumper]HtmlDumper::setDumpHeader() acceptsnull#42274
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
rrpadilla commentedJul 27, 2021
| Q | A |
|---|---|
| Branch? | 5.3 |
| Bug fix? | yes |
| New feature? | no |
| Deprecations? | no |
| Tickets | Fix#42272 |
| License | MIT |
| Doc PR | symfony/symfony-docs#... |
nicolas-grekas commentedJul 27, 2021
Shouldn't maximebf/debugbar be patched instead? Can you please them a PR? |
nicolas-grekas commentedJul 27, 2021
I read that in the issue on maximebf/debugbar, found the corresponding line in the code. This makes sense as a big fix now. Can you please add a test case to back the behavior up? |
nicolas-grekas commentedJul 27, 2021
I suggested an alternate fix inphp-debugbar/php-debugbar#474 |
barryvdh commentedJul 27, 2021
I fixed it for the time being now:php-debugbar/php-debugbar#475 I think we needed to reset it for a reason, which isn't currently possible. We're now overriding this method which solves it, but either a nullable check or a reset method would be helpful. |
derrabus commentedJul 27, 2021
Do you want to contribute the reset method as a feature for 5.4? |
nicolas-grekas commentedJul 28, 2021
Actually I prefer making the setter null able as a bugfix :) |
HtmlDumper::setDumpHeader() acceptsnullderrabus commentedJul 28, 2021
Good catch, thanks@rrpadilla. |