79374010

Date: 2025-01-21 10:25:19
Score: 0.5
Natty:
Report link

Is there any way to make PhpStorm use the mapped namespace of a class, instead of the original one, when it automatically inserts use statements?

Yes, the feature is called Auto Import (jetbrains.com). Configure it to your liking.


See as well the Composer and Directories settings, PhpStorm can be configured that include paths are updated from the composer.json configuration file and PSR mappings are also with the Directories.

Reasons:
  • Blacklisted phrase (1): Is there any
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there any
  • High reputation (-2):
Posted by: hakre