PhpStorm 2019.2 Help

Creating Symbols From Usage

Suppose you are referring a class or a method, which has not yet been created. With PhpStorm, you can easily stub out the missing symbol with the aid of the dedicated intention action.

Create a symbol from usage

  1. Type the name that references a non-existent symbol. PhpStorm highlights the reference.

  2. Press N/A, and choose the corresponding option from the suggestion list, for example Create class <class name>, or Add method <method name> to class <class name>.

    Create a symbol from usage
Last modified: 16 August 2019

See Also