junichi11 commented on issue #5551:
URL: https://github.com/apache/netbeans/issues/5551#issuecomment-1471387676

   Reproducible. Thank you for your report!
   
   As a workaround: Please try to change the order if you would like to hide it.
   
   ```php
   class Main
   {
       public function output()
       {
           echo $this->createHuman()->speak("Hello"), PHP_EOL;
       }
   
       private function createHuman(): Human
       {
           return new class implements Human {
               public function speak(string $dialogue): string
               {
                   return "Say: '{$dialogue}'";
               }
           };
       }
   }
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to