-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
class_serializers
supports closures
#1739
Conversation
This doesn't do what you think it does, have you tested your change? Your change currently will run the serializer for any type and is a big breaking change and also not how The serializer already can be a closure just like we do in our test cases: sentry-php/tests/Serializer/SerializerTest.php Lines 111 to 119 in d12ed37
The key in |
Consider making a special judgment on type |
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.
This needs tests and I'm currently not convenient why this change is needed in the first place.
Some classes are not inherited,unified processing can be achieved through namespaces or other judgments |
When using our sentry-php/src/ClientBuilder.php Lines 78 to 83 in d12ed37
This current approach doesn't make sense to me, Anyway, using the client builder seems like the best bet here for your specific needs? |
I agree with @stayallive on this. |
class_serializers
supports closureseg.