You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on a project that uses very strict psalm settings and this plugin, we discovered that running vendor/bin/psalm with following configuration and no arguments, no issues are reported:
If I run vendor/bin/psalm tests (new argument added!), the output changes, and starts reporting stuff that is generally silenced by this plugin (the following, but for every test):
ERROR: MissingConstructor - tests/src/Unit/Presentation/UserViewTest.php:27:35 - SomeProject\Core\Tests\Unit\Presentation\UserViewTest has an uninitialized property $this->user, but no constructor (see https://psalm.dev/073)
private UserSettingRepository $userSettingRepository;
Interestingly, no other errors around assertions nor anything: it seems like the translation from setUp to __construct isn't really working as expected 🤔
Tried it on updated dependencies BTW:
psalm/plugin-phpunit 0.12.2 Psalm plugin for PHPUnit
vimeo/psalm 3.17.2 A static analysis tool for finding errors in PHP applications
The text was updated successfully, but these errors were encountered:
While working on a project that uses very strict psalm settings and this plugin, we discovered that running
vendor/bin/psalm
with following configuration and no arguments, no issues are reported:If I run
vendor/bin/psalm tests
(new argument added!), the output changes, and starts reporting stuff that is generally silenced by this plugin (the following, but for every test):Interestingly, no other errors around assertions nor anything: it seems like the translation from
setUp
to__construct
isn't really working as expected 🤔Tried it on updated dependencies BTW:
The text was updated successfully, but these errors were encountered: