To avoid Larastan errors : test()
is it a correct replacement to $this
?
#1104
Labels
test()
is it a correct replacement to $this
?
#1104
🧑🏭 Context
I have security and code quality needs, i can't simply avoid errors with an ignore line in
phpstan.neon
like this :I find the way by replacing all
$this
withtest()
:Before, with Larastan error
After, without larastan error
I made some
dd()
and check the content, it seems ok.❓Question
But before review all my test suite, I need a confirmation :
Pest Version
2.8.1
PHP Version
8.2.13
Operation System
Windows & MacOS
The text was updated successfully, but these errors were encountered: