Disable native `PhpReturnDocTypeMismatchInspection` check
Opened this issue · 0 comments
i582 commented
In one of the last versions of PhpStorm, a PhpReturnDocTypeMismatchInspection
check was added, which sometimes gives false positive on our codebase. We already have a KphpReturnTypeMismatchInspection
that checks for the same, so the native check needs to be disabled.
However, since when the plugin is updated by the user, new version of the plugin doesn't reinitialize enabled/disabled checks, a situation may arise when users will still have this check enabled.
Ideally, every plugin update, the plugin would run some function that would reinitialize the state of checks and turn off unnecessary ones.
See com.intellij.ide.util.RunOnceUtil