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

Incorrect formatting for lambda functions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.2
    • 12.2
    • php - Editor
    • None

    Description

      Formatting is incorrect when a lambda function is used with a return statement.

      Example code:

      <?php
      
      function test(): callable {
          return function ($test): void {
              echo "test";
          };
      }
      

      Actual result:

      <?php
      
      function test(): callable {
          return function ($test): void {
                      echo "test";
                  };
      }
      

      Expected result:

      <?php
      
      function test(): callable {
          return function ($test): void {
              echo "test";
          };
      }
      

      Attachments

        Activity

          People

            junichi11 Junichi Yamamoto
            junichi11 Junichi Yamamoto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: