Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[POC] [VarDumper] Added StringDumper to export dump as string#19616
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
| $this->dumper =$dumper ?:newHtmlDumper(); | ||
| if (null ===$dumper || !$dumperinstanceof ToStringDumper) { | ||
| $this->dumper =newToStringDumper(newHtmlDumper()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Should we wrap passed dumper instead of silent replace it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Yep, that's a typo
Uh oh!
There was an error while loading.Please reload this page.
This allows to export dumps as a string, instead of having it dumped to a stream. This is usefull when using the VarDumper as var exporter (e.g. in#19614 & see referenced issue).
Todo