Reputation: 185
I'm working on a Laravel project and when I was creating a new file I miss spelled the php extension ("php") but I didn't notice until I clicked enter so my PHP class files now appear as text files in PhpStorm and appears no hints whenever I write something in any php file.
Im using PhpStorm 2020.2.
Upvotes: 0
Views: 884
Reputation: 679
And if you already did as @LazyOne suggested and your file still showing as text then right click the file and do this:
Upvotes: 0
Reputation: 165118
Settings (Preferences on macOS) | Editor | File Types
*.php
entry there.If it's not there then add it. Looks like you somehow re-assigned it to the "Text" file type.
Altought blade.php get recognized right,
That's because *.blade.php
is assigned to separate/dedicated "Blade" file type (so IDE can provide Blade-specific support there).
Upvotes: 2