magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

False Positives When Using Path Repositories - Observers & Plugins

Open sprankhub opened this issue 2 years ago • 1 comments

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 https://github.com/magento/magento2-phpstorm-plugin/issues/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 https://github.com/magento/magento2-phpstorm-plugin/issues/372 and closed, but it is not solved yet / was introduced again.

sprankhub avatar May 23 '23 15:05 sprankhub