5

this morning I faced with this issue and I don't know really how to solve this.

Here's an image and a video: http://screencast.com/t/2ubAbwPj6

P.S. When I refactor the file to "filename.PHP" PhpStorm detects it but if I change it back to "filename.php" PhpStorm won't detect it as a PHP file.

2 Answers2

19
  1. Settings/Preferences | Editor | File Types
  2. Locate Text Files entry there
  3. Remove unwanted pattern from the bottom list (most likely will be LoginListener or LoginListener.php
LazyOne
  • 148,457
  • 42
  • 363
  • 369
2

This works for me:

File -> Invalidate Caches... -> Invalidate and Restart.

This will remove caches and indexes, the new caches will be built when the project is reopened.

Hemerson Varela
  • 21,330
  • 14
  • 61
  • 67