PhpStorm is opening a php as an SQL file. I checked the extension and it is php but PhpStorm insist to open it as an SQL. I've tried to clear the cache but no use.
Go to settings and under Editor>file type.
add a file type that you want to add or may be you remove other file type.