You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/09/10 12:56:26 UTC

[GitHub] [netbeans] zeleznypa opened a new issue, #4612: PHP code suggestion from generated class properties

zeleznypa opened a new issue, #4612:
URL: https://github.com/apache/netbeans/issues/4612

   ### Description
   
   The PHP 8 introduced generated class properties defined in constructor like:
   
   ```php
   class Foo {
       public function __construct(
           public Bar $bar,
           protected Baz $baz
       ){}
   
       protected function doSomething(): void
       {
           $this->bar->magic($this->baz->property);
       } 
   }
   ```
   
   instead of old one:
   
   ```php
   class Foo {
       public Bar $bar;
   
       protected Baz $baz
       public function __construct(Bar $bar, Baz $baz)
       {
           $this->bar = $bar;
           $this->baz = $baz;
       }
   
       protected function doSomething(): void
       {
           $this->bar->magic($this->baz->property);
       } 
   }
   ```
   
   ### Use case/motivation
   
   When the code is written old way,  the code suggestion in the `doSomething` method after I wrote `$this->bar` or `$this->baz` or when I press there the shortcut for the „Show code completion popup“ display the popup with available properties and methods.
   
   Unfortunately when the code is written in new way format, the popup is empty. 
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] junichi11 commented on issue #4612: PHP code suggestion from generated class properties

Posted by GitBox <gi...@apache.org>.
junichi11 commented on issue #4612:
URL: https://github.com/apache/netbeans/issues/4612#issuecomment-1278502186

   I can't reproduce it.
   Could you write an exact example code to reproduce it?
   
   ```
   Product Version: Apache NetBeans IDE 15
   Java: 11.0.16; OpenJDK 64-Bit Server VM 11.0.16+8-post-Ubuntu-0ubuntu120.04
   Runtime: OpenJDK Runtime Environment 11.0.16+8-post-Ubuntu-0ubuntu120.04
   System: Linux version 5.15.0-50-generic running on amd64; UTF-8;
   ```


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] zeleznypa closed issue #4612: PHP code suggestion from generated class properties

Posted by GitBox <gi...@apache.org>.
zeleznypa closed issue #4612: PHP code suggestion from generated class properties
URL: https://github.com/apache/netbeans/issues/4612


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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


[GitHub] [netbeans] zeleznypa commented on issue #4612: PHP code suggestion from generated class properties

Posted by GitBox <gi...@apache.org>.
zeleznypa commented on issue #4612:
URL: https://github.com/apache/netbeans/issues/4612#issuecomment-1283478215

   @junichi11 Strange. Now when I tried to isolate the example, situation not happen on the same environment.
   I'm closing the request.


-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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