PhpStorm 2017.2 Help

Parameter Hints

On this page:

Parameter hints for methods

Place the caret anywhere within the call of the desired method or function and choose View | Parameter Info on the main menu or press Ctrl+P. Parameter information for methods defined through the @method phpDocumentor tag is also available:

php_storm_view_parameter_info.png

Parameter hints for constructors

PhpStorm prompts you about the parameter type when a constructor is called. Place the caret anywhere within the call of the desired constructor and choose View | Parameter Info on the main menu or press Ctrl+P. The parameter type is shown in a tooltip:

ps_parameter_hint_for_constructor.png
When you type the parameter value, it is prepended with the parameter from the constructor:
ps_parameter_hint_for_constructor_result.png

Configuring the behavior of parameter hints

Open the Code Completion page (Settings | Editor | General | Code Completion for Windows and Linux or PhpStorm | Preferences | Editor | General | Code Completion for macOS) and configure the following options in the Parameter info section:

  1. To have a complete method or function signature shown rather than a list of required types, select the Show full signatures check box.
    Make sure to include the required third-party JavaScript libraries and PHP-related items in the project source path. Otherwise, names of the parameters will not be displayed.
  2. To have the list of parameter types for the called method or function shown automatically after a certain delay, select the Auto pop-up (in ms) check box and specify the time period in milliseconds.
Last modified: 12 October 2017

See Also