Skip to content

Disable native PhpReturnDocTypeMismatchInspection check #10

@i582

Description

@i582

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions