my .gitignore has:
also, just to be sure, I added the same in /.git/info/exclude/:
Yesterday I renamed the project (File | Rename Project...) and now when I open the Commit window the /.idea/PROJNAME.iml is shown as a file to be committed every time.
/.idea/ has never been committed.
Using PhpStorm 2019.3.3