Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128067 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 2DF771A00BC for ; Tue, 15 Jul 2025 19:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752608274; bh=QcbIosHiui23NIVN13zPSu6NnVaTs76ivcaLLn3L1ZM=; h=Date:From:To:In-Reply-To:References:Subject:From; b=hVYORKm69xJUqnth2M5n6pNc71tewiLNmIznq53AJwRLHKrN4r/N8tzu5gi1uZUYJ vhq9kTI5RZXZCsDOhvaiY4hg9qBEkSLtJ3bArMEzVlOQ3CHTGvMaqZ+24hntbjf0T8 8G59PcJenkzTJ2pMkBehHpoTuLZ7KZN7MbuTB4G/f1knMda8LaWyuWRtdKRfmdFmLa 42ZSDWl7mdPe3umMehH1RazvpfodG4D1ClA9NBSfc91GAv9B4NIMv/z3vA2KLHX3Uy yRrsIntF3YeqrJieieqmYU/GlrTwC+kfo+ThmB1MkW1mySx2PNLTx2Xc78kFsRTFvq fijbDkDtcCQ8w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 326C1180061 for ; Tue, 15 Jul 2025 19:37:53 +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.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (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 ; Tue, 15 Jul 2025 19:37:52 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4BD8514002D6 for ; Tue, 15 Jul 2025 15:39:40 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Tue, 15 Jul 2025 15:39:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1752608380; x=1752694780; bh=QcbIosHiui 23NIVN13zPSu6NnVaTs76ivcaLLn3L1ZM=; b=BB3N2PDPmAb7oA2nBsmnBIsbv/ OPky8Horgm8VH5n+FpGYSYCPqjDz9n6cHUIdNfMFlrf5HN+FMsdgdOXY29EQAkbv 2QNs8LleH3MIDglFmX5BAhv4uCRdRriMiuDowccHtlY8T6UnK31JQKcHNlQyBudW V3KG0hDCApfyZnVBZrw4e/wpFNY+hNa4cHKc6JTCkLSW+Ymz7muvf/qvJgQODaQW 7UQf+Ql1GcQLe7q3jxaV2ki793GC0Z++4IAceJsAd/kTxonxX8qjn7h1X8719yhZ 3R0rZhD8CVrsw2Pn2/H1msrWIds9b4c+x9cd/iaXKbUf6EHVftOQJOvoSu9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1752608380; x=1752694780; bh=QcbIosHiui23NIVN13zPSu6NnVaTs76ivca LLn3L1ZM=; b=P41ohIg6IgA1Re3rSUlt3jbc9cozvW3tcJfqe1NB+gvBKHLlgtj QFo94rp6rVMf14iQcLLZjfA4gC4P4sjfHUn3Hn4TYkIKmV+dbcqtIYm9tJ7uhB7I godiAzlvWsAQVWAqbvfU5sP20/RgZd7Q9V6CngasQWXVuVMRYg/s68Yu2R4sbE1a fLSxBnVUdakVKKfBTEsN6EgCiYcvJB21VwH6PHxmEVXi7GpmDhZWCsyaPOC2hnAD N+KkbmUpQf+dAGmrr1GbBsqrq04B/jj1d4hcPc9m/BVi3GmVvLJW2LBVKTnmdZZU 8Zc25gnGo2cGEf5lmCPbe1BZi94XO76NyVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehheeilecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjug hrpefoggffhffvkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfnrghn uggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtthgvrh hnpeekleelgeejhffhgfevleekuddtkeduveduveeutdetheeghfdtkeffvdejlefgteen ucffohhmrghinhepphhhphdrnhgvthdpfehvgehlrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtgho uggvshdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 91A891820074; Tue, 15 Jul 2025 15:39:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T699cdebae00e1fd4 Date: Tue, 15 Jul 2025 21:39:18 +0200 To: internals@lists.php.net Message-ID: <277533a4-d50a-41ec-b753-b118c1e4ab69@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Warnings for PHP 8.5 Content-Type: multipart/alternative; boundary=7ca914bfbb1148d2ac667dcb1f62afac From: rob@bottled.codes ("Rob Landers") --7ca914bfbb1148d2ac667dcb1f62afac Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 14, 2025, at 18:20, Gina P. Banyard wrote: > Hello internals, >=20 > Similar to the mass deprecation RFC, I would like to propose the addit= ion of a few warnings in certain situations: > https://wiki.php.net/rfc/warnings-php-8-5 >=20 > I am expecting these 4 sub-proposals to be mostly uncontroversial, > other than possibly, the "Using offsets on non-container values in iss= et()/empty()" one. >=20 > As this is intended to land in PHP 8.5 the discussion will last 2 week= s and voting will commence on Monday the 28th of July 2025. >=20 > Best regards, >=20 > Gina P. Banyard >=20 Hi Gina, I feel like destructuring `null` should not be the same warning= as other types since null auto-vivicates? to [] (an empty array). Inste= ad, it should provide the same warning as https://3v4l.org/8QPiD. =E2=80=94 Rob --7ca914bfbb1148d2ac667dcb1f62afac Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Mon, Jul = 14, 2025, at 18:20, Gina P. Banyard wrote:
Hello internals,

Si= milar to the mass deprecation RFC, I would like to propose the addition = of a few warnings in certain situations:

I am expecting these 4 sub-proposals to = be mostly uncontroversial,
other than possibly, the "Using off= sets on non-container values in isset()/empty()" one.

As this is intended to land in PHP 8.5 the discussion will last 2= weeks and voting will commence on Monday the 28th of July 2025.

Best regards,

Gina P. Banyard=


Hi Gina, I feel li= ke destructuring `null` should not be the same warning as other types si= nce null auto-vivicates? to [] (an empty array). Instead, it should prov= ide the same warning as https://= 3v4l.org/8QPiD.

=E2= =80=94 Rob
--7ca914bfbb1148d2ac667dcb1f62afac--