Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4604

PHP - instant rename of private constant

    XMLWordPrintableJSON

    Details

      Description

      NetBeans can rename local variables and private fields and methods by selecting it and Ctrl-R and editing the name.

      Same function is not supported for private class constants.

      Pressing Ctrl-R always displays rename dialog.

      Example code:

      class PrivateConstant {
      
          private const PATH = '/';
      
          private $field;
      
          private function getField() {
              return $this->field;
          }
      
          function getPath(): string {
              return self::PATH;
          }
      
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Kacer Tomáš Procházka
                Reporter:
                Kacer Tomáš Procházka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h