-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ensure context lines option is used (fixes #740) #743
Conversation
Looks like the get/setContextLines methods allow for possible null, but the OptionsResolver only allows an int, do you mind if I change the method signatures of these to be int only? |
That's indeed another bug and I agree that the parameter should not be Line 134 in 5ec1fbe
|
Even if |
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.
Very good changes, thanks for spotting this bug!
I'm requesting just a little test improvement.
As a user I would expect no lines to be sent to Sentry if the value of that option is set to 0. I may be wrong but I think that actually the number of lines also includes the line that originated the frame itself |
Setting it to |
I didn't forget about this guys, just been busy at work. I'll try to get a data provider setup on the test and merge the other test and update the PR today or tomorrow. |
@mattzuba are you willing to make the requested changes? We would like to release |
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.
I agree with @ste93cry review comments. Apart from those, LGTM! 👍
Made the requested changes and rebased against master as well. |
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.
Thanks a lot for your contribution!
I should have to add this to the changelog, but since I haven't merged #769 yet, I'll do it myself there.
Tests included, ensures that the context options that are set are used, rather than being hard-coded to a constant.