Vim Status Bar Shows Wrong Function Name

  question, vim

I installed the Powerline plug-in and the status bar will display the current function name when writing php code. But there are problems and inaccuracies. Does anyone know how to solve it?

Powerline calls the currenttag of the tagbar plug-in to display the current function name. Tagbar relies on ctags, but ctags do not support php well. Phpctags can be used.