> I would like to submit the following RFC for your consideration:
> https://wiki.php.net/rfc/constructor_promotion
>

I love it :)

Just one question:
Shouldn't default values be copied on the signature? That would be expected
for me.
(and that would make the properties still initialized when child classes
don't call the parent constructor for whatever reasons.)

class Point {
    public function __construct(
        public float $x = 0.0,

<==>

class Point {
    public float $x = 0.0;

    public function __construct(
        float $x = 0.0,

Nicolas

Reply via email to