PhpStorm reads files from all folders - Multiple definitions exist for class

Answered

Hello. I am pretty new to PhpStorm. I have written a PHP project which i opened in PhpStorm. The project lies in /var/www/html/file1. The problem is that the IDE produces the error Multiple definitions exist for class "nameOfClassHere". When i Ctrl - Click the name of the object it shows me that it has found my backup which lies in home/myName/. How i can make it read only from my current project directory and not the whole system?

0
2 comments

Hi there,

Please check if you have "." entry in "Include paths" at "Settings/Preferences | Languages & Frameworks | PHP". If you do -- please remove it.

Otherwise -- please check what folders you are including in your project in "Settings | Directories".

2
Avatar
Permanently deleted user

It seems that the first part of your answer solved the problem. 

Thank you for your time

0

Please sign in to leave a comment.