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

PHP8 named arguments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 11.3
    • None
    • None
    • None

    Description

      Tested in latest build (netbeans-linux-143-on-20201030-release.zip 30 oct. 2020 05:40:08)
      Project opened in Netbeans is set to PHP8.

      Netbeans shows a syntax error on PHP8 named arguments.
      These lines are valid in PHP8:
      array_fill(start_index: 0, num: 100, value: 50); // From RFC
      setcookie(name: 'test', expires: time() + 60 * 60 * 2,); // other example

      Attachments

        1. nb-php80-named-argument-01.png
          81 kB
          Junichi Yamamoto
        2. nb-php80-named-argument-02.png
          19 kB
          Junichi Yamamoto
        3. PHP8NamedArgument.jpg
          64 kB
          Jayce

        Issue Links

          Activity

            People

              junichi11 Junichi Yamamoto
              FFT Jayce
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: