EDIT:
the previous answer is no longer valid, since now PHP behaves like other oop programming languages. constructors are not part of interfaces. so now you can redefine them as you prefer, without any problems.
the only exception is the following:
interface iTest { function __construct(A $a, B $b, Array $c); } class Test implements iTest { function __construct(A $a, B $b, Array $c){}
PREVIOUS OLD NON-VALID RESPONSE:
there is a significant difference between an empty constructor and no constructor at all
class A{} class B extends A{ function __construct(ArrayObject $a, DOMDocument $b){} } VS class A{ function __construct(){} } class B extends A{ function __construct(ArrayObject $a, DOMDocument $b){} }
user652649
source share