Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable native PhpReturnDocTypeMismatchInspection check #10

Open
i582 opened this issue Jun 8, 2022 · 0 comments
Open

Disable native PhpReturnDocTypeMismatchInspection check #10

i582 opened this issue Jun 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@i582
Copy link
Contributor

i582 commented Jun 8, 2022

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

@i582 i582 added the enhancement New feature or request label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant