We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Deserialize class having a metadata described in a separate XML file, e.g:
<?xml version="1.0" encoding="UTF-8" ?> <serializer> <class name="Foo" exclusion-policy="ALL" accessor-order="custom" custom-accessor-order="bar"> <callback-method name="afterDeserialization" type="post-deserialize" /> <property name="bar" type="integer" since-version="1.0" expose="true" access-type="property"> </property> </class> </serializer>
Using PHP 7.4 I get a configuration exception (I've removed irrelevant stack and adapted for privacy):
{ "trace": [ { "file": "/app/vendor/jms/serializer/src/Metadata/Driver/XmlDriver.php", "line": 374, "function": "__construct", "class": "Metadata\\MethodMetadata", "type": "->", "args": [ { "0": "bar" }, "afterDeserialization" ] }, { "file": "/app/vendor/jms/metadata/src/Driver/AbstractFileDriver.php", "line": 32, "function": "loadMetadataFromFile", "class": "JMS\\Serializer\\Metadata\\Driver\\XmlDriver", "type": "->", "args": [ { "name": "Foo" }, "some-path/Foo.xml" ] } ], "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Internal Server Error", "status": 500, "detail": "Argument 1 passed to Metadata\\MethodMetadata::__construct() must be of the type string, object given, called in /app/vendor/jms/serializer/src/Metadata/Driver/XmlDriver.php on line 374" }
I've already written a PR for the needed fix: #1310
The text was updated successfully, but these errors were encountered:
fixed in #1310
Sorry, something went wrong.
No branches or pull requests
Steps required to reproduce the problem
Deserialize class having a metadata described in a separate XML file, e.g:
Expected Result
Actual Result
Using PHP 7.4 I get a configuration exception (I've removed irrelevant stack and adapted for privacy):
I've already written a PR for the needed fix: #1310
The text was updated successfully, but these errors were encountered: