Is PHPStan supposed to be supported? #670
-
I just installed Pest and I'm getting loads of PHPStan errors. Going through the past issues, it seems like PHPStan is supposed to be supported, but I'd like to make sure? Should I install anything specific so that PHPStan understands the Pest API and its tests? For example |
Beta Was this translation helpful? Give feedback.
Answered by
nunomaduro
Feb 21, 2023
Replies: 2 comments 2 replies
-
PHPStan does not understand Pest's |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nunomaduro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHPStan does not understand Pest's
$this
. However, you can use Pest's expectation API, or PHPUnit's Assert class directly if you really want to use PHPStan in your test suite.