pulse00/PDT-Extensions — Issue #21: Base class methods and main class interfaces causes warnings
Author: kgilden
Created: 2011-12-27 18:26:28+00:00
State: open

I get a warning `The type MainClass must implement the inherited method foo` every time a class extends a base class, which has some methods that implement some of the methods of an interface which is implemented by the class.

Some examples from the Symfony core libraries:
* `Doctrine\Common\Persistence\AbstractManagerRegistry`
* `Assetic\Filter\GoogleClosure\BaseCompilerFilter`

Reproduction code:

namespace Foo\Base;

interface BaseInterface {
function foo();
}

namespace Foo\Base;

class BaseClass
{
public function foo() {}
}

namespace Foo\Main;

use Gilden\Bundle\AireBundle\Entity\BaseInterface;

// The warning gets thrown here, but only if the interface is from a different namespace.
class MainClass extends BaseClass implements BaseInterface
{
}