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

PHP - instant rename of private constant

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Kacer Tomáš Procházka
            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

                Slack

                  Issue deployment