[Solved] Phpstorm not recognizing PHP file

Let me get right to the solution. Go to Settings Click on Preferences Click on Editor Select File Types Search for file types entry (like whatever the icon that shows instead of php file in your file) Remove the name that is troubling you in there. I hope this helps you.