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 2024/03/01 07:13:41 UTC
[I] in PHP "?" being auto removed from typehinting [netbeans]
Eugene-Melbourne opened a new issue, #7123:
URL: https://github.com/apache/netbeans/issues/7123
### Apache NetBeans version
Apache NetBeans 21
### What happened
when pressing `<ctrl> + i` the "?" being removed from the type-hint
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
create a file in your PHP project
call it "Foo.php"
content of the file
```
<?php
/**
* @property ?Foo $foo_1
* @property Foo|null $foo_2
*/
class Foo{}
```
pressing `<ctrl> + i` (to fix, include or clean-out files from the `use` section)
and you will notice that the only "?" on this file is removed, but "|null" is not removed.
I believe that "?" should not be removed on `<ctrl> + i`
### 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.2; Java HotSpot(TM) 64-Bit Server VM 19.0.2+7-44
### 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
Re: [I] in PHP "?" being auto removed from typehinting [netbeans]
Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #7123:
URL: https://github.com/apache/netbeans/issues/7123#issuecomment-2011325784
I just noticed that "?" being auto removed not only in class declaration but also in var
<?php
class Foo{
/** @var ?Foo $foo */
}
--
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
Re: [I] in PHP "?" being auto removed from typehinting [netbeans]
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #7123: in PHP "?" being auto removed from typehinting
URL: https://github.com/apache/netbeans/issues/7123
--
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
Re: [I] in PHP "?" being auto removed from typehinting [netbeans]
Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #7123:
URL: https://github.com/apache/netbeans/issues/7123#issuecomment-2005214146
Thank you for the correction, I fixed the original text to reflect your note. Thank you
--
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
Re: [I] in PHP "?" being auto removed from typehinting [netbeans]
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #7123:
URL: https://github.com/apache/netbeans/issues/7123#issuecomment-1998998017
Not <kbd>Ctrl</kbd> + <kbd>i</kbd> but <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>i</kbd>
Reproducible. 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