Extract Constant Dialog
|Name||In this text box, specify the name of the new constant.|
|Replace all occurrences||Select this check box to have PhpStorm automatically replace all the occurrences of the selected expression (if the
selected expression is found more than once in the method).
In this area, choose the method to define the PHP constant.
The area is available only when the refactoring is invoked outside a class definition because the choice itself is relevant only in this context:
extracted class constants are defined through the |
const keyword only.
Last modified: 1 December 2016