Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121740 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46991 invoked from network); 20 Nov 2023 23:08:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Nov 2023 23:08:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C88918003B for ; Mon, 20 Nov 2023 15:08:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Nov 2023 15:08:55 -0800 (PST) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40907b82ab9so13475925e9.1 for ; Mon, 20 Nov 2023 15:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700521731; x=1701126531; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xlWzz/4AX9+TmyaWbjI6hOBIwcJ5XQhvFqPGCJt+Nzg=; b=U/CmuMyRfhkliqTpOEkC5HhXOA0vrZ+yj2GvTlkWZAjFHDiABoVOGgEJdRqlW8aJ96 PQ0M7I//9b9NKIQSxywpxAVSN6qvRNtlFvu//Ih/Y2cpeaY0xaTGEb1Ws2SkNuLIfr9U HwzUYIxjPYTnwE4ERaU1BJgfBOOahiY30gpRAOMGYifvWGwPQopBMUxFdNblYZxPX9aQ f/AjWaosBUPEjmkXw0Yed8rTMt6E+c+iGwuRZ258lnS9KLSPyYK5vdY/85YU19adZOdm QdH5oskEaw99NrVgYLU/OKzk8BZPJJeTgdL4gEyJuhcwY4LY93niHgW9EydY3v0f5Nco qxMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700521731; x=1701126531; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xlWzz/4AX9+TmyaWbjI6hOBIwcJ5XQhvFqPGCJt+Nzg=; b=JJqkCzT2hZk0is2DvzX7s2mbq9S0v7vt8KQ4to9Ox/e0aQDEwwYdq3KPyo7Nd11OnX YGc2q+mux3B7Y7uIRr0iPEm3E/6zFZpNS8gvRtgVm2HyDYPhJuyHgjyieErAcUkNWJKY ii/HFntNHYIcCXsXDCrTUSuEgkGEszILsm5IAcMF9SByR2t50r9Fernpm3o2pM9yFceF Vr+c8J3G6uafhAlgmB1/vtjXGOE2FnGy7TvbpJPXmRmeK2k6EAZqADyPN04mUwhCdqph pgdgwYdLb8gjfQo+74k+ivX4Mh9v8HUwXxZ5GBuuueQjQz/XI/ydUoCxJ2KI/W1dQ2Cz JR6w== X-Gm-Message-State: AOJu0YxG5UNBI7effJYGlzID+Zenwj8cqVphmohGZcCNUAXRSPawSNSv diP3BqhB2NaBcUllM0VvzssnapG+ke4= X-Google-Smtp-Source: AGHT+IH85pRAyZ/kRpTzovTnUJ8VHTPyzToNFGNluGGl/sxlSrBvjWY72J6K1ndEg40CGruNXj5MPQ== X-Received: by 2002:a05:600c:2217:b0:407:5de2:ea4d with SMTP id z23-20020a05600c221700b004075de2ea4dmr672828wml.13.1700521731127; Mon, 20 Nov 2023 15:08:51 -0800 (PST) Received: from [192.168.0.22] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.googlemail.com with ESMTPSA id k39-20020a05600c082700b004083729fc14sm18925930wmp.20.2023.11.20.15.08.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 15:08:50 -0800 (PST) Message-ID: <054a1e3e-f860-4596-83a9-9f557c6fd316@gmail.com> Date: Mon, 20 Nov 2023 23:08:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB To: PHP Internals References: <2b4591c1-f999-49b5-8061-67db816aa0da@gmail.com> In-Reply-To: <2b4591c1-f999-49b5-8061-67db816aa0da@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [RFC][Discussion] Harmonise "untyped" and "typed" properties From: rowan.collins@gmail.com (Rowan Tommins) On 16/11/2023 20:41, Rowan Tommins wrote: > Hi all, > > I have finally written up an RFC I have been considering for some > time: Harmonise "untyped" and "typed" properties > > RFC URL: https://wiki.php.net/rfc/mixed_vs_untyped_properties I've revised the RFC; it now proposes to keep the implicit "= null" for untyped properties, although I'm still interested in suggestions for other strategies around that. I have also added discussion of variance checks (thanks Claude for the tips on that). While doing so, I checked Reflection, and am unsure how to proceed. Currently ReflectionParameter shows a difference between "function foo($bar)" and "function foo(mixed $bar)", even though these are analysed as equivalent in inheritance checks. Should ReflectionProperty also retain this distinction? Was the possibility discussed when "mixed" was introduced of using a ReflectionType of mixed for both cases? Regards, -- Rowan Tommins [IMSoP]