orklah / psalm-strict-equality

Automatically change == into === when safe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Psalter support?

kkmuffme opened this issue · comments

Are these issues auto-fixable?

Atm I get:

Psalm doesn't know how to fix issue(s): NotStrictEqualSign

Yeah they are, but Psalm does not allow plugin to register fixable issues like that.

Technically, as long as you are in psalter mode, this plugin should start fixing issue, so if you try to fix another issue, this will get fixed along the way. Otherwise, if you only want to fix this issue, the command should look like vendor/bin/psalm --alter --plugin=vendor/orklah/psalm-strict-equality/src/Plugin.php

This should be improved in Psalm itself but I couldn't find time to do that