Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121707 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19018 invoked from network); 17 Nov 2023 15:02:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Nov 2023 15:02:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C132E18002B for ; Fri, 17 Nov 2023 07:02:44 -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=-3.1 required=5.0 tests=BAYES_00,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-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 ; Fri, 17 Nov 2023 07:02:44 -0800 (PST) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-507bd19eac8so2765602e87.0 for ; Fri, 17 Nov 2023 07:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700233361; x=1700838161; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7Fd1VRf7yCuteI9fNFrgcQigAYyvoEtU4Jgt8iGWNSk=; b=Dnw1xyGvrVg1B7uxw70Z/7uwAGJePj6kPX6Nz2xmG8e8qm7YywisZl3PuoZPtDvsln 0+H4NtdnmieNLNb64HOj93kPIzaACq1SvAH+1nPHksbVc/08W6FalQHssDWuHrvaE8g1 eXD1wa0mVvQ9FLBX+K6JHqJv2YLxUqd5LiU+mHpD1w3KuBJgYFezd1NhYbhJKu9IXR5P FIBpzioHWSAy6WCX4qGhBTopncVSCCXuzBfsqP6JoWO5OJ6/QqJ0PDmRf/BVOuZDQt5E T+iEFOrutA5IcUQF45+MH1tBdBtApSuwSuVBwiT7l9sVwwrOqiqh1IMDmVYTdR0JjzFA hsPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700233361; x=1700838161; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7Fd1VRf7yCuteI9fNFrgcQigAYyvoEtU4Jgt8iGWNSk=; b=HP8BRHwFhIC+4KoxjsrQCEZgBzJQHIEtPCLysq8HgXZoW+XTzlNk4GI1KfTjZv9ADV SoxbuLf0PxL1ewmmhsingjf8hhO+T7yVRXZ7btOcGCEFPca0/pcmrQQb2ik1g7QUeTM6 uPGXGP4SmLHjT0FrJ793Ph6qBf9Aa+rR/y6P0arJM15HQFgHOL9QOKFVp/J/76oYSR5n /QHVoC1RA/NjCjRhz8bACwAudSk1Fa/zvdswNGwc3aB6zSM3u2F731d3s/Rwoyu5YNu8 +r6pHI4GvQ28DE1GRSd4H+0NHN2uJtddHSXyyhkgbsYn1HQxIHM63N8tbhbUqP4Btr8j +n6g== X-Gm-Message-State: AOJu0YzYHs3QCdM7E2JO5cRoDUzWk6tbRLhtLus1RbBlrRtXdtXMjYBV 9rJD6OwaE7snZICHrpxWsmE= X-Google-Smtp-Source: AGHT+IFKHAo5ix75504f4Exg1FLP9GNe7yA5yEWjW2H9Tev4JUH1YIIVi3wjjBFrM1EtFC0Ho3QPeQ== X-Received: by 2002:ac2:4c42:0:b0:50a:7664:1d72 with SMTP id o2-20020ac24c42000000b0050a76641d72mr16207995lfk.9.1700233360909; Fri, 17 Nov 2023 07:02:40 -0800 (PST) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id q2-20020a170906b28200b009ad8acac02asm878194ejz.172.2023.11.17.07.02.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2023 07:02:40 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) In-Reply-To: Date: Fri, 17 Nov 2023 16:02:29 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <2b4591c1-f999-49b5-8061-67db816aa0da@gmail.com> To: Rowan Tommins X-Mailer: Apple Mail (2.3731.700.6) Subject: Re: [PHP-DEV] [RFC][Discussion] Harmonise "untyped" and "typed" properties From: claude.pache@gmail.com (Claude Pache) > Le 17 nov. 2023 =C3=A0 14:53, Rowan Tommins = a =C3=A9crit : >=20 > On 17 November 2023 13:30:42 GMT, Claude Pache = wrote: >>=20 >> Yes, except that an untyped (respectively `mixed`) property cannot be = redeclared as `mixed` (resp. untyped) in a subclass. A small step in the = right direction is to allow that. >=20 > Huh, I didn't know that. I'll add it to the RFC, at least to consider. >=20 > The RFC to add "mixed" gives an example of removing the type as = invariance, but doesn't seem to justify why "untyped" and "mixed" should = be considered different, from a type system point of view. = https://wiki.php.net/rfc/mixed_type_v2 Note that untyped is different from `mixed` in the case of return values = of functions: in that context, untyped is equivalent to `mixed|void`. In = all other contexts, untyped and `mixed` are effectively equivalent, = because `void` is void of sense. =E2=80=94Claude