Re: Implementing Generics, and none scalar default properties.
| From: | Stanislav Malyshev | Date: | Sat, 26 Sep 2015 07:59:45 +0000 |
| Subject: | Re: Implementing Generics, and none scalar default properties. | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88510@lists.php.net to get a copy of this message | ||
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
smalyshev@gmail.com