-
Notifications
You must be signed in to change notification settings - Fork 917
Closed
Labels
PHP[ci] enable extra PHP tests (php/php.editor)[ci] enable extra PHP tests (php/php.editor)kind:bugBug report or fixBug report or fix
Milestone
Description
Apache NetBeans version
Apache NetBeans 20
What happened
() is added when we run CC in the use function context.
i.e.
use function Vendor\Package\myFunction()Language / Project Type / NetBeans Component
PHP editor
How to reproduce
Example:
<?php
namespace ExampleA;
function myFunction(): void {
}
namespace ExampleB;
use function ExampleA\myFunction^; // CC hereActual result:
<?php
namespace ExampleA;
function myFunction(): void {
}
namespace ExampleB;
use function ExampleA\myFunction(); // "()" is addedExpected result:
<?php
namespace ExampleA;
function myFunction(): void {
}
namespace ExampleB;
use function ExampleA\myFunction; // "()" is not addedDid this work correctly in an earlier version?
No / Don't know
Operating System
Ubuntu 22.04
JDK
JDK 19
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PHP[ci] enable extra PHP tests (php/php.editor)[ci] enable extra PHP tests (php/php.editor)kind:bugBug report or fixBug report or fix