[
https://issues.apache.org/jira/browse/NETBEANS-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junichi Yamamoto resolved NETBEANS-52.
--------------------------------------
Resolution: Cannot Reproduce
Assignee: Junichi Yamamoto
> 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 - Code
> 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