This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249140 - Fast import in PHP messes up by d()
Summary: Fast import in PHP messes up by d()
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 249814 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-05 10:37 UTC by fehrlich
Modified: 2016-06-20 06:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fehrlich 2014-12-05 10:37:22 UTC
Im using netbeans mainly for php so i dont know if this happens also on other platforms.

The Kint debugger uses a single char function called d($someVar), to debug variables.

Whenever I perform a quick import it replaces all function calls with DatePeriod($someVar), this is really annoying.

This happens always, even if there are no new imports to make.
The undo-action doesnt work either after it replaced everything, so you have to do it manually.
Comment 1 Tomas Mysik 2016-06-10 09:55:59 UTC
Reproducible, will try to look at it.

Thanks.

My code:

<?php

function d($var) {
}

$d = d($someVar);
Comment 2 Tomas Mysik 2016-06-20 06:40:37 UTC
*** Bug 249814 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Mysik 2016-06-20 06:53:31 UTC
Should be fixed now, please verify.

Thanks.

http://hg.netbeans.org/web-main/rev/a146c2b6ac19