You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Eugene-Melbourne (via GitHub)" <gi...@apache.org> on 2023/06/14 05:47:48 UTC

[GitHub] [netbeans] Eugene-Melbourne opened a new issue, #6075: in PHP "?" should be equal to "|null" for typehinting

Eugene-Melbourne opened a new issue, #6075:
URL: https://github.com/apache/netbeans/issues/6075

   ### Apache NetBeans version
   
   Apache NetBeans 18
   
   ### What happened
   
   when I use typehint like this 
   
   `/** @var ?User $user */`
   
   Netbeans doesn't understand the typehint
   
   but if I do it like this 
   
   `/** @var User|null $user */`
   
   the typehint is being understood by Netbeans, It means that the 
   ctrl+space - gives options
   and 
   ctrl+shift+i - is not trying to delete the "use User"
   
   But for PHP it is the same meaning.
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 version 10.0 running on amd64; UTF-8; en_AU (nb)
   
   ### JDK
   
   19.0.1; Java HotSpot(TM) 64-Bit Server VM 19.0.1+10-21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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] KacerCZ commented on issue #6075: in PHP "?" should be equal to "|null" for typehinting

Posted by "KacerCZ (via GitHub)" <gi...@apache.org>.
KacerCZ commented on issue #6075:
URL: https://github.com/apache/netbeans/issues/6075#issuecomment-1591789178

   Reproducible, thank you for the report.
   
   Working example:
   ```php
   function now() {
       /** @var \DateTime|null $now */
       $now = NULL;
       $now->
   }
   ```
   
   Not working:
   ```php
   function now() {
       /** @var ?\DateTime $now */
       $now = NULL;
       $now->
   }
   ```


-- 
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] junichi11 commented on issue #6075: in PHP "?" should be equal to "|null" for typehinting

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #6075:
URL: https://github.com/apache/netbeans/issues/6075#issuecomment-1597909902

   @Eugene-Melbourne 
   
   > should I make a separate ticket for this, or does this ticket covers it?
   
   Will fix it with this ticket. Please write a whole example code to reproduce it always. Thanks.


-- 
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] junichi11 closed issue #6075: in PHP "?" should be equal to "|null" for typehinting

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #6075: in PHP "?" should be equal to "|null" for typehinting
URL: https://github.com/apache/netbeans/issues/6075


-- 
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] Eugene-Melbourne commented on issue #6075: in PHP "?" should be equal to "|null" for typehinting

Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #6075:
URL: https://github.com/apache/netbeans/issues/6075#issuecomment-1599737666

   @junichi11 
   
   You are right! I should have tried to reproduce it. 
   The `@property ?\DateTime $now` is working now in Netbeans18. 
   It was not working in the Netbeans 17 along with `@var ?\DateTime`. 
   I thought if one is not fixed then the other one is also not fixed. My mistake. Thank you for pushing me to follow the formal procedure.


-- 
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] Eugene-Melbourne commented on issue #6075: in PHP "?" should be equal to "|null" for typehinting

Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #6075:
URL: https://github.com/apache/netbeans/issues/6075#issuecomment-1597902229

   there is the same problem in regards to the class comments like this 
   
   ```
   /**
    * @property ?\DateTime $now
    * /
   ```
   
   should I make a separate ticket for this, or does this ticket covers it?


-- 
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