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 134377

Summary: Editor Should Check And Warn For Unimplemented Methods In Classes.
Product: php Reporter: udevril <udevril>
Component: EditorAssignee: Tomasz Slota <tslota>
Status: RESOLVED FIXED    
Severity: blocker CC: polan, tmysik
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 150234    

Description udevril 2008-05-02 08:40:31 UTC
PHP Code editor should check for unimplemented methods in classes that extends a abstract class or implements interfaces.

    interface ICommand
    {
        function execute();
    }

    class SomeCommand implements ICommand
    {

    }

I want to see the warning when i run the file with php interpreter.

(Fatal error: Class SomeCommand contains 1 abstract method and must therefore be declared abstract or implement the
remaining methods (ICommand::execute) in SomeCommand.php on line 3)

abstract class AbstractClass
{
    abstract function abstractMethod();
}

class ConcreteClass extends AbstractClass
{

}

Code Editor also should warn about not-overrided abstract methods when extending from abstract class

(Fatal error: Class ConcreteClass contains 1 abstract method and must therefore be declared abstract or implement the
remaining methods (AbstractClass::abstractMethod) in ConcreteClass.php on line 1)
Comment 1 polan 2008-08-13 10:20:52 UTC
Hint would be nice in this case.