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

Integrating upstream Whoops issue 752/PR 751 #1217

Merged
merged 2 commits into from
Apr 17, 2023
Merged

Integrating upstream Whoops issue 752/PR 751 #1217

merged 2 commits into from
Apr 17, 2023

Conversation

StrykeSlammerII
Copy link

This fixes Integration test WhoopsRendererTest::testRenderWhoopsPage() and related issues with the Whoops error handler. Creating a new Run instance here, as I can't find an existing one in UF's WhoopsRenderer.
(See related upstream issue filp/whoops#752 and associated PR filp/whoops#751)
(See also UF_ConfigManager issue lcharette/UF_ConfigManager#8 (comment))

lcharette and others added 2 commits October 2, 2022 21:32
This fixes Integration test WhoopsRendererTest::testRenderWhoopsPage() and related issues with the Whoops error handler.
See related upstream issue filp/whoops#752 and associated PR filp/whoops#751 .
Creating a new Run instance here, as I can't find an existing one in UF's WhoopsRenderer. Please point out if I'm just missing it!
@StrykeSlammerII
Copy link
Author

This fix feels like a hack to me--it works, but I don't know why a new object is required. If there's an existing Whoops\RunInterface, we should use that instead.
I couldn't find one quickly, but I'm not familiar with UF's internals.

@lcharette
Copy link
Member

It is a hack, but I'm confortable with this fix. FYI, a permanent solution is already implemented in V5 (it use the PrettyPageHandler and Run directly) :
https://github.com/userfrosting/sprinkle-core/blob/712bcc617a8fc98d3006539e0738969de8e7f36e/app/src/Error/Renderer/PrettyPageRenderer.php

@lcharette lcharette changed the base branch from master to hotfix April 17, 2023 01:57
@lcharette lcharette merged commit 0ba45e2 into userfrosting:hotfix Apr 17, 2023
@lcharette lcharette self-requested a review April 17, 2023 01:58
@lcharette lcharette self-assigned this Apr 17, 2023
@lcharette lcharette added the confirmed bug Something isn't working label Apr 17, 2023
@lcharette lcharette modified the milestones: 4.6.x, 4.6.7 Apr 17, 2023
@StrykeSlammerII StrykeSlammerII deleted the StrykeSlammerII-patch-WhoopsRenderer branch April 17, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants