-
Notifications
You must be signed in to change notification settings - Fork 54
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
JsonException when using custom binary DoctrineType #106
Comments
@zoka123 thanks for the report, will have a look at it shortly |
@zoka123 First, I'm sorry for that very late response. |
i had this problem today. i couldn't reproduce the error in dev environment yet and looks like my problem is not related with uuid's.
php 8.1.2 |
auditor
versionSummary
It fails to compute the diff when a custom Doctrine type mapped to binary database type is used. It checks for known types such as Ramsey or Symfony UUIDs, but doesn't provide for customization when it comes to custom types - it defaults to using
convertToDatabaseValue
for all the unknown types.convertToDatabaseValue
in this case is returning a binary value which breaks JSON encoding further down the line.Current behavior
A custom doctrine type, e.g. a copy of AbstractUid would cause the following exception:
How to reproduce
JsonException: Malformed UTF-8 characters, possibly incorrectly encoded
Expected behavior
We could maybe introduce an interface that could be used with custom types, and checked here?
The text was updated successfully, but these errors were encountered: