Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129260 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 6FC071A00BC for ; Sun, 16 Nov 2025 09:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763286286; bh=52Kkb4dcrZS2lO2gTV0doYiUyWuutJRPEv5xErJI7DE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GuGMozd56Gu+vGoHgP3MHUaudMfEaTtqWabxrhEetbYvQ1CmWcB5YgQNmablSHVdm TlIzVf692IfQXiUUMXlmyOp6LJWwr7DNxjRy0KX5EUyAjIOsIOcmQn9nt0VlgACmQn 7DWQmjZ7uEabvqmM01gRC/k2idk4XHAkM8gg8U4jaX3y3M5t4Vqfq5lsDfLItOzfkb RwwS1qVUfxeI9EE6J5AtXv5fFYcTscAmmCP2uGoakyRIeHj1Pql6LIfP2gLASARBQQ KqM20FEgL72RYzVxEgkqVEMLkmn6StvskbiPjNo51KyrTZDFFUmBDaaybZvnjHeZ4/ UqEKnZxtCo02Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3463D18004F for ; Sun, 16 Nov 2025 09:44:46 +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.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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, 16 Nov 2025 09:44:45 +0000 (UTC) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-b73545723ebso577207566b.1 for ; Sun, 16 Nov 2025 01:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763286280; x=1763891080; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WsvYW1aVlvZ+kIAvEk6OYpPaCsh/qrNkOgEAsxKMZFs=; b=Ry0ZFh+FYhvndQlGofvEWCdnEN0BY4oPHmUY++jyP48yQ0QyWRdqnUgpy9S+nN45fV WItHd6Ioz2+lRWVawH/Ve5foGpZMNSK7chGUKlVrO8VBjY8d+xGDwVa4+QUyksG3NUDF h8OJT9jix7bY0VPLCGkGCxw7hjd9fuHKKkNidM+CW6JipA+X2wfR4grum9o6woKTrGsC heo4h9snl3UJWuB2M6Nh5UJrGVmL5Qi03MrTa4p++HUMOzfRrGT/1xeFS8lNEnmfw5rw m3+BPpCxUsSK6ZHHkTj6ZAJ/czzBmzSMNBock6Ne5XOeEnjxN6tFLWYy8HqrZlxSos1l 7onA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763286280; x=1763891080; h=cc: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=WsvYW1aVlvZ+kIAvEk6OYpPaCsh/qrNkOgEAsxKMZFs=; b=oShV1dv1h5wZ2ORPFRAr7qeVKMcbzxpouZWOXOlUlhmen7ziD93FX6WlM2+AdKIsFv 3oGrIs5lGgn8vGYCcOA7tRp8h7FfPFPL0acR/sEx7wae7RnZsAIj7cYF4XU0Y/rdVw8g 3xfdoh8KW8si1SHR57tcNAjsvVdmmcN8yDAj/NNLk311tg1R6fspKieHgG4/rygOWMre uFcW281irIptdEwnEsm34mHlToLS6ZF4msHa+NuEGbplgTsA5UMFIh5lZkGram1SYrNs kIWVwMY05txkPev0GSEcnK7Ff3LL8g16QOLTF7pRDRb0qhP6oH/Ceei/MJdtO9MCQ6Z4 mkdQ== X-Gm-Message-State: AOJu0YyJmWnbn1bY+9f6IezCU9vr1QKRz9wd21Dw4ynp8LUypIWxIuLG kU8bAB0rvaMVhvxwDmcsqfzCWEIBYOf7rq4yHPu2QRgJ69B3ewnQIo6EjCTsETf37x5MNcF13Xe v6HX+XhcPMHI0BI66NTKgcQstyzVpksY= X-Gm-Gg: ASbGnctBgHhp2qIIKCPniVl0OQAY8DQ7yBqdxLWwH0w4R2rrYpKaWsXFO1msrrC6Uyd l0EftTxCxLDlCcwEvy01J89r2iQWTLNDncufsGEV6g9/hia4PpkseWYwkb+nto7r/OWf3nZN4Cj b69A/fz1Izz6CQN8s3hLPubnKR0rx4rQSZGNUfMoBEVxLgRch5uMxTyrn6qFgHCJBAWnD3oMzV+ gGIBXT3cdreI3Gm6hNJCrfujVr8vDThc3aNHNsfEQs1L58gNPFu0PiS/bW5 X-Google-Smtp-Source: AGHT+IHFRkqiZDCljDD4qDC1wwyWNObO40QMNv+zGOxue0rndG/TuiVcwBnwI+dureCO2lMXqTlnqL8hi7Zy9X4Rxwc= X-Received: by 2002:a17:907:97ce:b0:b73:7974:94bb with SMTP id a640c23a62f3a-b7379749857mr578792866b.46.1763286279465; Sun, 16 Nov 2025 01:44:39 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <34c08e21-8cd1-2e0e-1cca-148d4acc5432@php.net> In-Reply-To: Date: Sun, 16 Nov 2025 12:44:28 +0300 X-Gm-Features: AWmQ_blLAc9wUUcARzVFPexiFlQmQDd_I2f5Tp3E_xR2vEaTQ41uednEKVAJJdQ Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] Add values() Method to BackedEnum To: Niels Dossche Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000532ea90643b31432" From: mikhail.d.savin@gmail.com (Mikhail Savin) --000000000000532ea90643b31432 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D1=81=D1=80, 12 =D0=BD=D0=BE=D1=8F=D0=B1. 2025=E2=80=AF=D0=B3. =D0=B2 22:2= 6, Niels Dossche : > > > On 12/11/2025 20:01, Larry Garfield wrote: > > Isn't this what the #[ReturnTypeWillChange] attribute was intended for? > > > > cf: https://wiki.php.net/rfc/internal_method_return_types > > > > That seems like an option C? It's technically a BC break, but people > can just drop an attribute on it to disable the return type check until > 9.0. We did the same for the various internal methods, as noted in that > RFC. > > Parameter checks are not disabled by that attribute, so the BC problem > remains. > Hi everyone, Based on your feedback, I=E2=80=99ve updated both the PR and the RFC by rem= oving the return type declaration from the interface. Thanks for the input. --000000000000532ea90643b31432 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=D1=81=D1=80, 1= 2 =D0=BD=D0=BE=D1=8F=D0=B1. 2025=E2=80=AF=D0=B3. =D0=B2 22:26, Niels Dossch= e <dossche.niels@gmail.com>:


On 12/11/2025 20:01, Larry Garfield wrote:
> Isn't this what the #[ReturnTypeWillChange] attribute was intended= for?
>
> cf:
https://wiki.php.net/rfc/internal_meth= od_return_types
>
> That seems like an option C?=C2=A0 It's technically a BC break, bu= t people can just drop an attribute on it to disable the return type check = until 9.0.=C2=A0 We did the same for the various internal methods, as noted= in that RFC.

Parameter checks are not disabled by that attribute, so the BC problem rema= ins.

Hi everyone,

Based on your feedback, I= =E2=80=99ve updated both the PR and the RFC by removing the return type dec= laration from the interface. Thanks for the input.
--000000000000532ea90643b31432--