Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130665 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 976CD1A00BC for ; Sun, 19 Apr 2026 01:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1776561625; bh=07ekosW4aO5ycyUYAgljsd1tnt6GXgPUfd+RUXbsapo=; h=References:In-Reply-To:From:Date:Subject:To:From; b=AvXPjsJE1bLYn5L88kK9/gUcH46tw0gZrMqIB37OE9sML8E1ZprFQpctaTr3uSN5B p0yPiMpC9VAwWzc2KzY5vcqoOEMIc/jSZhst9e/3H4U3j4HFyWmn+XHbytz0laJagt 4EAAtixxHEGD5suIqnUM/NtS3OWv7ZA3xIz4VeQy4LF0lDN70v0R6EWEVln9yaD+dL nCZxcCqz8iB2AUBsVahjgkJgKglTeCdLOr1KexvTRBHT6+3xKL4BJxi3b1HZBw399Z 13XioOi4Y4nN1h8RYL4tb0zSpfMMc2NjEpDV1h4ii0IeFjkPt8PPImHGiIqwcN3foX NYT0ojhlBXjDg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 76E4318004C for ; Sun, 19 Apr 2026 01:20:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 ; Sun, 19 Apr 2026 01:20:24 +0000 (UTC) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-79885f4a8ffso18865577b3.3 for ; Sat, 18 Apr 2026 18:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776561618; cv=none; d=google.com; s=arc-20240605; b=OmCLbawvJBHb4udV11m8DxU4E3Wd/gUxMk+hyUokoxaBLbVFGqa7BpNGXRJ1vjTURu 5ilMSt7LSum9CiAl0w2/rpD384yMO0+ikTrAuweAVPq2eN8u9YWFWNOUQjwo4RkwPYyH FY399dFc5W9cmELXY5OMdftGsolI0Zgdlep7qArHwP7KsMbARLEIHPZvFgRpcdvyOdgh +r7ey3p6uPiYZjdqbyi9Fuk00/Lq+4obwrUodUr65I3G2nfg8YC/Qh7/gyjeIE+JLQes LuXbK/9sgc4IuTU8Vojp28g6YoGq65mFGdjEkgTMmTpnJXVV0Mo143HkAdt4eMrcgAWh 3ihg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=07ekosW4aO5ycyUYAgljsd1tnt6GXgPUfd+RUXbsapo=; fh=RnZ+4KjfdZdxwVfzmjFoBvUAaJ227RJecqE9MM9tvfQ=; b=PQ5mqUtWwyd8WwWL5p0JmU6OOKCPCH4kZn/ygquMI1AptHen2MIotcEVAOVdrRZ+IX t4pgAb24Jy5Z+EQcZFyinYARL2tmg75fMVQezvhTKGXghEHTAAmovk3RLryXikys9VYN gnqQ7mhrdJhdu+OTBBzGApwosUEdlwXXVWSv0pmtwnSn9431iedyJWAgBt9BHRkE7FDN CRM0M6pyUc/OjaesS4OJTHC+wyRLQxPtEgb+IlMrV25B6SshKv6ILX2OHTSVT43zMsA1 ycn1sbdnHj1CQI4wKknf4Uf+QRys4KCoZgeAPidBy4Ac2w3hlpz7TEOS7VyeHaSeFJHr j/Fg==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776561618; x=1777166418; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=07ekosW4aO5ycyUYAgljsd1tnt6GXgPUfd+RUXbsapo=; b=GqmwHhLtguCjqVHtjlrK8esvA5RvzevvqUSQr0+TkIliNr1whKBp7rQah9NXHTVEFW LftDLLeQ/j+q3mSaaNaylzovnPAeYD5RIzgyhsT6/fluzNDyerCvertK/wAD5qpzra2M EvXoqujcwexvkNRsmit0VDx1MRQBSBr2HQVm+nBOSYAJmxRuib3Mg09ITGWWaPj1rO03 SNXvrLTJvFelI6X3LddwrC0xEHkqSflIN42NqLdRcyeqHdn/uxgEyvwi4Fzjk0iAp9FT uweqlgmuMaN7Lc6qJCyGYjC0EZhj58k8KOQqhPDGhxLnaOVsJZygaMD7hzY54+q2aEjV dhsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776561618; x=1777166418; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=07ekosW4aO5ycyUYAgljsd1tnt6GXgPUfd+RUXbsapo=; b=nEruGw0cG26eTPtd2DgcwaRKnE3/t+50LTltnysAqnfPjSD4uvQp6S0sJ4oZdcQNGg k3MXppbyjE6bEfBL4OzDi9z1wSwTG0rcAAbb+G8Gdb058VOq1vsPuwHYXEw6viwU3BJy bU0Rl9gLujmSOG1L3uIh3bbRczfy2n9z6C0aPHhurXK8i8bHe6Vf0JUl9D0VxdQZc5lA i9FqLEQXHobm8DHVVZAe2PQdkjiaKiYc0v+vTCnKmsqbD39mT+JUtYSZfL2OtFdvA1z3 534YxigKP0eepasmOfoFypwYbpfVR+7IAUEvndocmTYI3v49p6cOGnVWXsxfQjLsJZm5 mmyA== X-Gm-Message-State: AOJu0YwTSKfpO8D1pi6HbQeZkYbxXHRJrMnj3uXcV8HTiF39FZBMKcTs lwoRCizihTHQYb0T26pjnHYwocaUSfOiyAb8Niy1tP9GjLBBKLyCC0Zk8YaE7nS/E65dwISwKBe Dy8+x3fvlQOULzVnDZhJMugLCTDiJ8VyDYw== X-Gm-Gg: AeBDiesZwhZGWzj4Q7S47MjxS76slPD86c6F7PYfnmqLqwCOxk5YbM6g/1Qd8cXMCUz tgulD4f1ta9dAHs4J6riStDbljp+lU3jDMZsh1pvS9j5XVDQuVE2GuPoQnS51vSuht/5cNvknCq 1aImVAL8Op6n5MjZ6foq7dPyfrst4u7hGL67UnnIAX6NVCv2Dq/4rMoHDvNdJG3IrwZG+BfXSwi xwU2EbBG41TAEK5Fy7V80i5GYdbg5ZwDM6ZAZc+jtjlz1Bp4kms9ZhOd7j8tqoF3x9Iu5fzWI0P Vyzmtyc211ENPg== X-Received: by 2002:a05:690c:e3e3:b0:7af:6075:4e0e with SMTP id 00721157ae682-7b9ecfc8de1mr93581497b3.35.1776561618234; Sat, 18 Apr 2026 18:20:18 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 18 Apr 2026 18:19:45 -0700 X-Gm-Features: AQROBzCjiM61C0DKYxS19ckkTEvkEjB86hmAczA8yxQyHr1CUQkYdeIwlI3tLpI Message-ID: Subject: [PHP-DEV] Re: [RFC] [Discussion] `#[\Override]` for class constants To: php internals Content-Type: multipart/alternative; boundary="0000000000002d2e86064fc5fc80" From: daniel.e.scherzer@gmail.com (Daniel Scherzer) --0000000000002d2e86064fc5fc80 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi internals, I have updated the RFC to resolve the open issue about `#[\Override]` on enum cases - when marked with `#[\Override]`, the enum case must be overriding an inherited class constant. The fact that this is so uncommon makes it all the more important that when it is intentional, it can be made clear. This qualifies as a "major change" to the RFC and triggers a 14 day cooldown period. -Daniel On Mon, Mar 30, 2026 at 4:36=E2=80=AFPM Daniel Scherzer wrote: > Hi internals, > > I'd like to start the discussion for a new RFC about adding support for > `#[\Override]` for class constants. > > * RFC: https://wiki.php.net/rfc/override_constants > * Implementation: https://github.com/php/php-src/pull/20478 > > I'd also like to draw specific attention to the open question, which I am > soliciting feedback on: how should `#[\Override]` work for enum cases? Se= e > the RFC page for details. > > Thanks, > -Daniel > --0000000000002d2e86064fc5fc80 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi internals,

I have updated the RFC to= resolve the open issue about `#[\Override]` on enum cases - when marked wi= th `#[\Override]`, the enum case must be overriding an inherited class cons= tant. The fact that this is so uncommon makes it all the more important tha= t when it is intentional, it can be made clear.

Th= is qualifies as a "major change" to the RFC and triggers a 14 day= cooldown period.

-Daniel

On Mon, Mar 30, 2026 at 4:36=E2=80=AFPM Daniel Scherzer <daniel.e.scherzer@gmail.com> wrot= e:
Hi internals,

I'd like to start the discussion f= or a new RFC about adding support for `#[\Override]` for class constants.


I'd also like to draw specific attent= ion to the open question, which I am soliciting feedback on: how should `#[= \Override]` work for enum cases? See the RFC page for details.
Thanks,
-Daniel
--0000000000002d2e86064fc5fc80--