magento / magento2-phpstorm-plugin

PHPStorm Plugin for Magento 2
Open Software License 3.0
436 stars 102 forks source link

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

Open sprankhub opened 1 year ago

sprankhub commented 1 year ago

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: (*)

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.

m2-assistant[bot] commented 1 year ago

Hi @sprankhub. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.