-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Handle string callable in case of non-static method #821
Conversation
Umh, there's something strange... I cannot reproduce the bug outside of Sentry's tests: https://3v4l.org/1CEnC What's really triggering the issue in here? |
@Jean85 don't have much time for testing, but it is |
I've found the difference: the issue is present with functions, not with class methods: https://3v4l.org/4ibt7 Not sure why there's a difference, the bug seems to be very subtle. [EDIT] I have found the root cause, and it's not a bug: https://bugs.php.net/bug.php?id=61467#1332546423 As explained by Rasmus himself, the point is that the |
Unfortunately we cannot remove the typehint or we will have a BC |
Crap that's true... maybe we can hotfix it in the previous method, but it would still be broken for other usages |
@Jean85 When are you planning to release it? Pretty annoying bug :-) |
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.
Would you be so kind to fix the remaining issues and rebase the PR on top of the master
branch? Also does the test in AbstractSerializerTest
covers this issue?
I face the same issue now while using sentry/sentry 3.22.1. Is there any regression?
|
It may be, even though it's the first time it is reported since years... I suggest to try version |
This is an improvement over #815. Thanks to @dmitry-pro for spotting the bug to start with.