Can not save a template after edit

I am trying to add a `

declare(strict_types=1);

to PHP File and PHP Class but I end with the following error:

Not sure if this is a bug and I should reported it somewhere, any ideas?

0
2 comments

Hi there,

Well .. your screenshot confirms the error: you indeed have 2 entries for "Doctrine Entity Repository".

I personally have no idea where it comes from (what plugin installs it). But try this:

  1. See if you can delete one of them on that screen
  2. Try disabling ALL 3rd party plugins to see if that helped (only 1 or none file templates for that left). If it helped -- enable plugins 1-2 at a time and see what causes this issue.

P.S. Similar thread: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004819879-Cannot-Save-Live-Template

0

It's a problem with PHP Annotations plugin, it registers this template twice - https://github.com/Haehnchen/idea-php-annotation-plugin/issues/151. Disabling this plugin should help

0

Please sign in to leave a comment.