PHP Native functions namespace.

Hi all.

I'm always using TAB when i'm trying to write php native function (example subs+TAB will autocomplete to \substr() ) But the problem that it always append global namespace \ but i don't want it. When i'm writing tests to my code i sometimes need to proxy or mock native function so i need substr() not \substr().

Is there any possibility to change this behaviour that PHPStorm will autocomplete without "\" native functions?

0
1 comment

Hi there,

Please check your Auto Import settings, there is a section for PHP.

Settings/Preferences | Editor | General | Auto Import

0

Please sign in to leave a comment.