junichi11 commented on code in PR #5579:
URL: https://github.com/apache/netbeans/pull/5579#discussion_r1120912501
##########
php/php.editor/src/org/netbeans/modules/php/editor/actions/FixUsesPerformer.java:
##########
@@ -527,7 +519,15 @@ public void visit(DeclareStatement node) {
if (CancelSupport.getDefault().isCancelled()) {
return;
}
- declareStatements.add(node);
+ for (Identifier i : node.getDirectiveNames()) {
+ // only - declare (strict_types=1) - should go before a
namespace
+ // and such a declare can't be a block {} element or can't be
in a global
+ // namespace, but - declare(ticks=1) could be anywhere.
+ if (i.getName().equals("strict_types")) {
Review Comment:
Please add `// NOI18N`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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