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 269833 - Show PHP deprecated usages
Summary: Show PHP deprecated usages
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-15 10:35 UTC by Xenos
Modified: 2017-05-26 18:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xenos 2017-02-15 10:35:26 UTC
Netbeans is able to mark deprecated functions thanks to PHPDoc, like:


/**
 * 
 * @deprecated Don't use.
 */
function iAmDeprecated() {
	
}

In my styling, the "iAmDeprecated" is stroke, showing it's clearly deprecated.
But NB should also mark the function as deprecated when used:

echo iAmDeprecated();

Here, NB can do auto-completion (iAmDe + Ctrl&Space shows "iAmDeprecated" which is marked as deprecated) but the function usage is not stroke, meaning it's hard to spot usage of deprecated functions.

NB does so in Java code (the usage of a deprecated class/method is styled like a deprecated element), but not in PHP.

-------------
Show case:


/**
 * This function declaration is well styled
 * @deprecated Don't use.
 */
function iAmDeprecated() {
	
}

// This usage should be styled too
echo iAmDeprecated();
Comment 1 nbcoderjay 2017-05-26 18:29:49 UTC
Just bumping because I REALLY want to see this feature added. I was under the impression that the hint mentioned in https://netbeans.org/bugzilla/show_bug.cgi?id=225031 did this, but alas, not so.