PhpStorm 2018.2 Help

Parameter Hints

Parameter hints show the names of parameters in methods and functions:

Parameter information for methods defined through the @method phpDocumentor tag is also available:

php_storm_view_parameter_info.png

PhpStorm also prompts you about the parameter type when a constructor is called.

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

View the parameter hints for a method

  • Place the caret anywhere within the call of the method or function and press Ctrl+P or choose View | Parameter Info on the main menu.

Configure the appearance and behavior of parameter hints

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), choose General under Editor, and then choose Code Completion. The Code Completion page opens.

  2. To have a complete method or function signature shown rather than a list of required types, select the Show full signatures checkbox in the Parameter info area. Make sure to include the required third-party JavaScript libraries and PHP-related items in the project source path. Otherwise, the names of parameters will not be displayed.

  3. 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) checkbox and specify the time period in milliseconds.

Last modified: 10 October 2018

See Also