Closed Apipa169 closed 3 years ago
I am absolutely fascinated by in what situation this would cause a failure... :sweat_smile:
We have no clue yet. We are using this bundle in multiple apps without having any issues. Today it popped up for some reason.
I’ll dive a bit deeper into it when I have time.
@Crell Will it be possible to tag a release for this fix?
Just fyi, this was the error. It occurs while it was being serialized by the JMS Serializer (4.2.0). We are using doctrine/annotations 1.13.1.
{
"detail": "[Semantical Error] The annotation \"@autor\" in class Crell\\ApiProblem\\ApiProblem was never imported. Did you maybe forget to add a \"use\" statement for this annotation?",
"file": "/Users/username/GitHub/project/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php",
"line": 803
}
I tagged a 3.5.1 release. It should show up in Packagist shortly.
That said,
1) Why are you using JMS Serializer on ApiProblem? I cannot imagine a case where that makes sense.
2) What the heck is JMS Serializer doing that it's choking on an @author
tag? I cannot imagine a case where that makes sense.
Thanks for tagging it!
Just using the asJson() method works, as expected, as a charm.
This typo results in failures in some scenarios.