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

No syntax warnings when PHP traits are used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.2
    • None
    • None

    Description

      Please see the attached project consisting of only a single file.

      For me, NetBeans does not produce its usual syntax warning hint (underlining with a red line) about a number of errors on the implementing class, only in a small tooltip at the bottom of the NetBeans window, where the status bar is.

      In another instance (with a real code), I have a different issue of not being able to get rid of the syntax warning about not implemented abstract method, despite it being implemented in a trait (and the code actually working). In the attached project I've tried to achieve a minimal reproducible code set, with a similar dependency tree, but was unable to yet, and instead I've got no warning hint at all, not sure if this is a related or a totally different issue.

      It didn't seem to do any difference between having everything in one file and having each class/interface/trait in their own files.

      A tooltip in the status bar seems to be there in both cases.

      Attachments

        1. TraitUsingTrait.zip
          1 kB
          Czukowski

        Activity

          People

            Unassigned Unassigned
            czukowski Czukowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: