Skip to content
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

[2.x] Fix #838: The Symfony VarDumper properly dumps in html context #856

Closed
wants to merge 1 commit into from
Closed

[2.x] Fix #838: The Symfony VarDumper properly dumps in html context #856

wants to merge 1 commit into from

Conversation

AlliBalliBaba
Copy link
Contributor

Fixes #838
When using dump(...) for debugging purposes in a request/response context, nothing is displayed in the HTML response.
One would expect to see the dumped variable as HTML in the response as is the case with regular Laravel

This one-line fix sets a global parameter that tells the Symfony VarDumper to always dump as html when we are in the context of a request/response with octane. Without this line the VarDumper will check PHP_SAPI to determine the context of the variable dump (which is always 'cli' with Octane).

Cheers

@driesvints driesvints changed the title Fix #838: The Symfony VarDumper properly dumps in html context [2.x] Fix #838: The Symfony VarDumper properly dumps in html context Mar 18, 2024
@taylorotwell
Copy link
Member

No plans to change this at this time.

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.

dump() only works in cli
2 participants