Skip to content

False Positives When Using Path Repositories - Observers & Plugins #1597

Open
@sprankhub

Description

@sprankhub

Describe the bug (*)

When using a path repository for development, you'll often have two directories containing the same code. One in your path (and project), and one in the vendor directory. When this happens, the plugin will flag false positives.

To Reproduce (*)

Steps to reproduce the behavior:

  1. Include a Magento module with a Composer local path repository.
  2. Add a plugin to any class.
  3. Add an observer to any class.

Expected behavior (*)

No issues are reported for the plugin and for the observer.

Screenshots

Shamelessly taken from #372:

image

Please complete the following information: (*)

  • OS: Ubuntu Linux 22.04
  • PhpStorm/Intellij version: 2023.1.2
  • Plugin Version: 5.1.1

Additional context

The issue has already been reported in #372 and closed, but it is not solved yet / was introduced again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions