netbeans
netbeans copied to clipboard
[PHP] function "use" variable linking is broken
Apache NetBeans version
Apache NetBeans 21
What happened
Notice the $fx(); line is not highlighted when other $fx variable usages are.
It seems it is otherwise supported, but the $otherFx = function () {}; line is breaking it.
As a consequence of this bug, $fx cannot be refactored/renamed using IDE in one step.
Language / Project Type / NetBeans Component
PHP
How to reproduce
<?php
function test() {
$fx = function () {};
$callFx = function () use ($fx) {
$otherFx = function () {};
$fx();
$otherFx();
};
}
Did this work correctly in an earlier version?
No / Don't know
Operating System
any
JDK
any
Apache NetBeans packaging
Apache NetBeans provided installer
Are you willing to submit a pull request?
No