I have a PHP trait file : app\Lib\someTrait.php
Even though it is a PHP file (with .php extension), PHPStorm is unable to recognize it as a valid PHP file. The editor is not doing syntax highlighting for PHP code inside this file and it is pretty much displayed as normal text file.
I am trying to use this file from its namespace in to another class file and there also it is unable to recognize the file path using :
use app\Lib\someTrait;
I did composer dump-autoload and also :
File->Invalid Caches and restart
I also deleted this file and restarted PHPStorm and again added it back but still not able to resolve this issue.
Looks like something has gone weird when I created a first file with this file name and now even though I tried all option PHPStorm is not treating this file as PHP file.
But still PHPStorm is unable to recognize this file.
Anyone has any idea how to fix this issue?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire