-
Notifications
You must be signed in to change notification settings - Fork 438
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
feat(ErrorReporting): Generate HttpRequestContext for log context. #5656
Conversation
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
5c96744
to
dd02ae2
Compare
} finally { | ||
// restore | ||
$_SERVER = $oldServer; | ||
} |
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.
A way to get around doing this type of thing is to just add @runInSeparateProcess
for PHPUnit, and then modifying the $_SERVER
will only affect this test
@westy92 thank you for this amazing contribution! |
You're welcome, thanks for the review! |
Adding code to generate
context.httpRequest
as mentioned in the docs.