An alternative that rfc might be to add a modifier to ctor, something like.
required public function __construct(); A required function cannot be final, because the intention is to allow it to be overridden, but it must be called by the child impl at some point. What do u think? On 26 Sep 2015 8:59 am, "Stanislav Malyshev" <smalys...@gmail.com> wrote: > Hi! > > > Since there is no reason not to call parent ctor, maybe PHP should > > somehow make every class have default empty ctor, if it doesn't have > > one defined already - so you can write automatically > > parent::__construct() everywhere? > > I completely agree with you, that's why I submitted > https://wiki.php.net/rfc/default_ctor. Unfortunately, it was rejected. > > -- > Stas Malyshev > smalys...@gmail.com >