Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110100 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99830 invoked from network); 9 May 2020 19:09:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 May 2020 19:09:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B1A621804E2 for ; Sat, 9 May 2020 10:45:14 -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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS2639 136.143.188.0/24 X-Spam-Virus: No X-Envelope-From: Received: from sender4-op-o11.zoho.com (sender4-op-o11.zoho.com [136.143.188.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 9 May 2020 10:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589046312; cv=none; d=zohomail.com; s=zohoarc; b=JsWLYUfmsqeix5Wb8HgMoGRbX7+RVEiNhBkN9Up0gNen49iSOnTWEltEQkgVFZ3J9dJlbaflqI2mGPVERJW6zy7+tMdlDuLRYG0sUGtZSTxeFVnLWGmAb8Gmc7lmE3qNMQLG53SDXJ6h1SbbEskktPlgwHZshICyUT0eiLhQjqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589046312; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=IuDLA1ghsHWr02H34mIwrDtu2RXk+hE8X7I7CTXqaAY=; b=GZHHUHBnl+DQgpmIykDSwq7PND/qjm+2hDS3CvlRu4C8cKwMB+U9xIbM0NWXOLzj3265z2unaIxvt19ft59IBgRGITQdKlgM6hRSBNxKvneO28iYlzK9VXKig3yWUgDiAlGQYq8vc8s/KPQWoGyCAswA1Gcz7PA1XbbhC03ioCk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=manuelcanga.dev; spf=pass smtp.mailfrom=php@manuelcanga.dev; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589046312; s=zoho; d=manuelcanga.dev; i=php@manuelcanga.dev; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=IuDLA1ghsHWr02H34mIwrDtu2RXk+hE8X7I7CTXqaAY=; b=D9Knl1h9HWIx0o3oxNLomypv9274hDJZD5A4M8SiSu/s4BFs+N5LBPRXfvL482nc smtyhCBoyCcdG92C14Pq3Hghyz4dE3QQDJJTA0JOP7ytXS12ZiaIb6oRcWUmvQlofuh KIeBiT24fQl/gIFIs6dVhLkQvs4AfeeoZWmFxaj4= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1589046280211616.0370284989042; Sat, 9 May 2020 10:44:40 -0700 (PDT) Date: Sat, 09 May 2020 19:44:40 +0200 To: "Thomas Gutbier" Cc: "G. P. B." , "Internals" Message-ID: <171fa89e0b1.acf209a5608713.1976931818183103904@manuelcanga.dev> In-Reply-To: References: <171dee3baf3.bef5753260554.3262181919550021853@manuelcanga.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Subject: Re: [PHP-DEV] [RFC] Keep type of reference params From: php@manuelcanga.dev (Manuel Canga) ---- En vie, 08 may 2020 13:03:59 +0200 Thomas Gutbier escribi=C3=B3 ---- > Isn't that already solved for typed properties? >=20 > Consider this: >=20 > class A { public static int $number =3D 5; } > $num =3D &A::$number; > $num =3D "String"; >=20 > This will result in an uncaught TypeError, > see https://3v4l.org/XC6hk >=20 > I would think, it would be consistent if referenced parameters > behaved in exactly the same way. >=20 > Regards, > Thomas >=20 >=20 Hi, Tomas, That option was my first thought. However, people( and me ) I know, normal= ly use local vars for function calls. Thanks Thomas for your opinion. Regards -- Manuel Canga