Psalm with PHP-DI #6285
Answered
by
orklah
gillesdalle
asked this question in
Q&A
Psalm with PHP-DI
#6285
-
My snippet : https://psalm.dev/r/bd1da8091e I use PHP-DI to define injections using annotations (https://php-di.org/doc/annotations.html). The MissingConstructor error is a false positive. Is there a way to make psalm understand this annotation? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
orklah
Aug 11, 2021
Replies: 1 comment
-
It could be handled through a plugin hook without too much trouble. Here's an example of how A PHP-DI plugin does not yet exists, it could be a good thing to have :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gillesdalle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It could be handled through a plugin hook without too much trouble. Here's an example of how
@required
was handled on methods in the Symfony Psalm plugin:https://github.com/psalm/psalm-plugin-symfony/pull/100/files
A PHP-DI plugin does not yet exists, it could be a good thing to have :)