Replies: 1 comment
-
Hi @GMQS, thanks for the report! This should be fixed with #398. 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using it to generate class instances from JSON. However, I have encountered an issue. It involves a simple structured class with an array type property, and I'm using the
array<T>
syntax from phpstan in the documentation comments. In this case, if I don't specify the class to be used for generics with its fully qualified name, it generates instances of the wrong class. From what I can infer, it seems that the behavior doesn't take into account the namespace of the class name specified in the documentation comments. It's likely that my customError
class was being mapped to PHP's standardError
class, leading to this issue. For more details, please refer to the sample code below.Response Class
Error Class
Beta Was this translation helpful? Give feedback.
All reactions