Change Signature dialog
The Change Signature refactoring combines several different modifications that can be applied to a method signature. You can use this refactoring to:
change the method name and return type
add, remove, and reorder parameters
assign default values to the parameters
change parameter names and types
propagate new parameters through the method call hierarchy
When changing a method signature, PhpStorm searches for all usages of the method and updates all the calls, implementations, and override replacements of the method that can be safely modified to reflect the change.
The Change Signature refactoring is supported only for PHP and JavaScript (see Refactoring JavaScript).
Item | Description |
---|---|
Name | Name of a function, method, or a method specification. |
Parameters | List of parameters in the signature. In the Parameters field, you can perform the following actions with parameters:
|
Result parameters | Returned or result parameters of a Go function. You can specify properties of the new parameter in the corresponding table row (a name, type, and a default value). |