Replies: 1 comment
-
Create a sample class of how the trait is supposed to be used, and analyse that. The class can be in |
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
-
According to https://phpstan.org/blog/how-phpstan-analyses-traits, it looks like phpstan will not analyze traits standalone.
I'm wondering how I could use phpstan in https://github.com/phpspec/prophecy-phpunit where the only non-test code of the package is a trait. what should be the strategy to analyze such package ?
Beta Was this translation helpful? Give feedback.
All reactions