16
Install the TextFX plugin and go to menu TextFX → TextFX Settings → +Autoclose XHTML/XML <Tag>.
This is a bit annoying, but you could temporarily switch to HTML language, and when you're done, switch back to PHP language.