Parameter hints show the names of parameters in methods and functions:
Parameter information for methods defined through the
@method phpDocumentor tag is also available:
PhpStorm also prompts you about the parameter type when a constructor is called. When you type the parameter value, it is prepended with the parameter from the constructor:
To 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 on the main menu.
To configure the appearance and behavior of parameter hints
- In the Settings/Preferences dialog (Ctrl+Alt+S), choose General under Editor, and then choose Code Completion. The Code Completion page opens.
- 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.