Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109338 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36389 invoked from network); 26 Mar 2020 17:37:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2020 17:37:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BB74B1804F4 for ; Thu, 26 Mar 2020 09:02:11 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 26 Mar 2020 09:02:10 -0700 (PDT) Received: by mail-oi1-f174.google.com with SMTP id k9so5902438oia.8 for ; Thu, 26 Mar 2020 09:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=tHHjuGeJiN6/RLUE6FA/mlS278Ya4G+VtUy8rDTBzn8=; b=tL2Q027fPBXf5F0/Bg2e9zJHZ9wLSNKL+9Mdr/v76FXQfCw5YNHkyJE+f4zRaOsc2z VJku5J7T3JeQFaQv4RPocliL0Dk1E6dvXWfZ55bqsunlX1maqrFN+li3EcUFJiMX7G4L QWPNjL6hQ5rKBWsXdpCZfF0u0y5SQ9ng7dn5xGynH6nWbkNiyVPsx3csywO9dbZFAMvk l/Yc6YQZo8bwtGv5Ufhh+QYx7MIwSQSoWoY5oN+5V9yPbb90fIxE4HY8+IYhC4bCaEH7 UiSuvG5kIaQ4j18fHt1QZnzTKAbRC9Ze7nQFBzk+q13qIl0/zNXxQLVXT6V3jl6Yzqtc dSHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=tHHjuGeJiN6/RLUE6FA/mlS278Ya4G+VtUy8rDTBzn8=; b=mPsJgDXoSpMqlrmuYNROIf+tQikU541r4i3I068kTHLYHs3azBNFrZ1pbVtDK/rIEU lWJ4LEApN5vVFbDFMuhFz759B2N6th9Nn8ct8CrhNMoc4ifRvyqpm9GsCgGT08cCHRxP 7f88ttZVI5J7qQOq1owBEH5msb0DXK8Q3E2fSZlxSyp9ZtzFFBl0aVhRM6xPzrkU8OPw r8f1syDn3J/arMUkAA0YAORZQxRmWO1f4sLrJrqKyePoySmkRgjdmnZY5rgxrOpyYSgY Wm9PodhR9QF300/H6COOa3lHQbuIzxCPLXvBlIEg5Pilo/rU3dRsZsDc09TgqS61KC9l yQAg== X-Gm-Message-State: ANhLgQ2XocMA1Be1G0TVgnMc5UWfAkfRYgBpSQMBJ9Lyc1L0PR0uwGHd gAAG3RRw1zYqz0rmmHaC0zHdKU8MRxZGdPdl3nePn60lnH8= X-Google-Smtp-Source: ADFU+vvYON3HDzjv6Myh8ufP7R0LZ+GVVFd7skM650BI7/+jbrHM6sTvKY3OrmoSyyVyVcgFuE1lHlc8bGKho3LN4yQ= X-Received: by 2002:aca:f582:: with SMTP id t124mr542891oih.17.1585238528797; Thu, 26 Mar 2020 09:02:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 26 Mar 2020 13:01:57 -0300 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="0000000000006559fb05a1c41b18" Subject: Re: [PHP-DEV] [RFC] Constructor Property Promotion From: david.proweb@gmail.com (David Rodrigues) --0000000000006559fb05a1c41b18 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! With all respect, seems a bit confuses to me, without in fact offer a new feature, just a shortcut. I hope it's me seeing it the wrong way. What happen if I rename the constructor parameters on a child class constructor? Example (https://3v4l.org/VqQde): class A { public function __construct(public int $x) { ... } } class B extends A { public function __construct(public int $y) { ...; parent::__construct($y); } } Atenciosamente, David Rodrigues Em qui., 26 de mar. de 2020 =C3=A0s 12:45, Sebastian Bergmann escreveu: > Am 26.03.2020 um 14:30 schrieb Nikita Popov: > > I would like to submit the following RFC for your consideration: > > https://wiki.php.net/rfc/constructor_promotion > > Looks good to me! Thanks. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --0000000000006559fb05a1c41b18--