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 258661

Summary: Extending a deprecated method does not make the child deprecated
Product: php Reporter: Csardelacal
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Csardelacal 2016-04-05 13:43:02 UTC
In this code:

<?php

abstract class A
{
  /**
   * @deprecated since version 1.0
   **/
   abstract public function a();
}

class B extends A
{
   public function a() {
     echo 'hello world';
   }
}

Netbeans will detect A::a() as deprecated, but not the (reasonably) deprecated child method B::a(). I don't think this boils down to opinion, extending / implementing a deprecated method should result in a deprecated method by proxy.