[ 
https://issues.apache.org/jira/browse/NETBEANS-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894204#comment-16894204
 ] 

Junichi Yamamoto edited comment on NETBEANS-52 at 7/27/19 12:09 AM:
--------------------------------------------------------------------

I can't reproduce it in NetBeans 11.0 and 11.1.

!netbeans-52-screenshot.png!

So, will close.


was (Author: junichi11):
I can't reproduce it in NetBeans 11.0.

!netbeans-52-screenshot.png!

So, will close.

> PHP7.1 Nullable type's use statement unrecognized
> -------------------------------------------------
>
>                 Key: NETBEANS-52
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-52
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor
>    Affects Versions: 9.0, Next
>         Environment: Ubuntu 16.04.3 - Linux 4.4.0-92-generic
> openjdk version "1.8.0_131"
> OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
> OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
>            Reporter: Ádám Turcsán
>            Assignee: Junichi Yamamoto
>            Priority: Major
>              Labels: features
>         Attachments: netbeans-52-screenshot.png
>
>
> There's a new PHP7.1 implementation in the nightly builds.
> As I was using the new features I recognized that if a used type is used only 
> in nullable cases, like below, NetBeans marks it as "Unused Use Statement":
> {code:php}
> <?php
> use \Psr\Log\LoggerInterface as Logger;
> class Example {
>     /**
>      * @var ?Logger
>      */
>     private $logger;
>     public function __construct(?Logger $logger)
>     {
>         $this->logger = $logger;
>     }
>     private function getLogger(): ?Logger
>     {
>         return $this->logger;
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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