Skip to content

[VarDumper] Fix dumping twig templates found in exceptions #43655

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

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

event15
Copy link
Contributor

@event15 event15 commented Oct 22, 2021

Fix for Cannot instantiate abstract class on (...) in ExceptionCaster in VarDumper.

Q A
Branch? 4.4 (and olders?)
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #27921
License MIT

In this issue #27921 @nicolas-grekas said that this affects very old versions - even 2.8. I created a branch from 4.4 according to the CONTRIBBUTING guide.

@event15
Copy link
Contributor Author

event15 commented Oct 22, 2021

I noticed that appveyor reports a mismatch between $expectedDump in tests and what the Windows returns. This is a minor error, but still, the test on Windows is red. Should I looking for any better way to test this?

I don't quite understand the problem with failing tests on version 7.4 high-deps. There is a suggestion in the documentation that it may be BC.

On the other hand, I see that merged PRs are also failing this steps (for example: https://github.com/symfony/symfony/actions/runs/1367057090 was merged) - so I don't know what it depends on.

@event15 event15 requested a review from stof October 25, 2021 06:58
@nicolas-grekas nicolas-grekas changed the title [VarDumper] Fix Cannot instantiate abstract class on (...) in `Exce… [VarDumper] Fix dumping twig templates found in exceptions Oct 25, 2021
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the fix LGTM.
Here are some comments for the tests.

@nicolas-grekas nicolas-grekas merged commit b3b587c into symfony:4.4 Oct 25, 2021
@nicolas-grekas
Copy link
Member

Thank you @event15

@event15
Copy link
Contributor Author

event15 commented Oct 25, 2021

@nicolas-grekas great! Thanks so much for your patience and help.

This was referenced Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants