-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
How can I teach Valinor to understand generics of \Ds\Set? #529
Comments
Hi @simPod, currently there is no way to tell Valinor how to handle this kind of usecase, that's actually the same for It's on my todo list, but right now I don't know how it will be handled internally. I'll keep you updated here. FYI |
Aight, thanks for the answer. I'll somehow hack on my side until some clear path forward materializes. |
Hi! Got same issue with Ds\Set mapping. As there is no way to handle this types i made a simple dirty way around, just skip type declaration in property and declare type in DocBlock part, add attribute to declare real type and remap output, Here is example:
And wrapped Mapper:
|
My investigation reached
DocParser::classTemplates()
. It tries to read generics from doc comment of passed class.My class is \Ds\Set. I guess there are no docblock comments for "native" classes.
That's why some stubs have been created https://github.com/JetBrains/phpstorm-stubs/blob/1650beae521d9dd1aee7dd208a68fbc9ec3765c6/ds/ds.php#L1885
Any idea how can I provide those stubs to Valinor?
The text was updated successfully, but these errors were encountered: