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

Summary: Show PHP deprecated usages
Product: php Reporter: Xenos
Component: EditorAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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.