Skip to content

Fix of error HtmlDumper::setDumpHeader() must be of the type string #473

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

Closed
wants to merge 1 commit into from

Conversation

peter-mw
Copy link

@peter-mw peter-mw commented Jul 16, 2021

Fix to work with the new method signature of Symfony's HtmlDumper::setDumpHeader which now requires string as parameter and does now accept null

TypeError
Argument 1 passed to Symfony\Component\VarDumper\Dumper\HtmlDumper::setDumpHeader() must be of the type string, null given, called in C:\xampp\htdocs\test\vendor\maximebf\debugbar\src\DebugBar\DataFormatter\DebugBarVarDumper.php on line 288

As temporary fix you can use older version of var-dumper, the version that works is "symfony/var-dumper": "v5.2.11" , new versions does not work

TypeError
Argument 1 passed to Symfony\Component\VarDumper\Dumper\HtmlDumper::setDumpHeader() must be of the type string, null given, called in C:\xampp\htdocs\test\vendor\maximebf\debugbar\src\DebugBar\DataFormatter\DebugBarVarDumper.php on line 288
@barryvdh
Copy link
Collaborator

According to the tests, this isn't working?

@johan16
Copy link

johan16 commented Jul 26, 2021

According to the tests, this isn't working?

I have the same problem with your library :(

@barryvdh
Copy link
Collaborator

Fixed with #475
Thanks! Didn't realise this was breaking so badly.

@barryvdh barryvdh closed this Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants