We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Formatter class uses print_r($var, true) to format an object by default.
Formatter
print_r($var, true)
This works most of the time, but will result in an endless stream of garbage if the variable contains circular references.
The symfony VarDumper component looks pretty promising. Seems like it allows you to limit depth.
The text was updated successfully, but these errors were encountered:
This could even be an additional formatter that can be used in place of the default one.
Sorry, something went wrong.
Another problem with print_r is that it doesn't differentiate types at all.
print_r
This code:
expect(1)->to->equal(1.0);
Produces this output:
Expected 1 to be identical to 1
No branches or pull requests
The
Formatter
class usesprint_r($var, true)
to format an object by default.This works most of the time, but will result in an endless stream of garbage if the variable contains circular references.
The symfony VarDumper component looks pretty promising. Seems like it allows you to limit depth.
The text was updated successfully, but these errors were encountered: