THIS IS REALLY A MEAN BUG
when i forgot to create a file > file > new with a valid .php extension, PS creates a .txt file by default. Renaming the file will not change its type to php in fact it is not even parsed as php file. its stays a .txt file FOREVER. i can only delete it but if i create a new .php file under SAME NAME its stays a .txt file. Reindexing does not change, Restart neither nothing. i can not use the filename as php filename anymore!