Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129898 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 926111A00BC for ; Fri, 23 Jan 2026 16:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769184367; bh=/QVHavRPpMI7DJcqaw+/W1SH7Vno0qszOzhQo3UpHDM=; h=Date:From:To:In-Reply-To:References:Subject:From; b=ij52r1v14UqQGPsvqDwPkvpKU65h+WRzbW7YsiKN+NCN9JRncGFdXh02c20yTmtia tAGAx64MGxF6u9Bqd0K3G2itoq78WXXERmElfvx+gUHPwl3HrIDxk22L6XWAWlU+k/ Jk2J9o56n4DT4OwrFhqCLZCtxWkw0+Anr2ddnqi9ZJXNMg8eJbOUrjZqm+LcOuzA7k ufbYFhyJCkp/aMwUau6WpzgzBZlZmnfjcgPtWQnDOdwgzyes7SyftypH7ZJ85aUIbW W1+FNUkwUW2HgaE6PrcY2wbP0PJj0XW6JumXE7iHUywspOsbukpHPPt127aAX0kGXY 1jyqJlpcZRfUQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BFE47180087 for ; Fri, 23 Jan 2026 16:06:06 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Jan 2026 16:06:06 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 10A401D0003C for ; Fri, 23 Jan 2026 11:06:01 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Fri, 23 Jan 2026 11:06:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding: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=fm2; t=1769184360; x=1769270760; bh=9W7zPVv4VI6N/xG+0N7iC NMiModG9EiSwEEfThc/3r8=; b=gGrVoH/mFYZI+Ba2dkVJjuhb+xPdQIr68ItXY OBMKGr6u73oPbKbAhNvscUEqetk3mNxPEZnLlKP1Jf0Q7/p6imHcQmn+3WfWy6o7 JtS6hTxvdf8Pu/4QYe/+rrcYYljqAR7J9h/x0dai3h2yx/3v9ks7Y+Pu5UcW0U8v qGQSTisE/jRHmbK2mKYVYGkxlJPy8d2Tx4NVZ2/80DTb4Tq9uu41HyJvZDpOpMv+ qtz8IyD3vuEYHgGmJSSoCWLafvYdIH2uVP2956bHb5sv3PIrC2nqsSZMgoQm68xr 3C9+R3uhbieccbf5BnMzkm02iVB/6CDEymu2Ew4XuCmIHJh+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1769184360; x=1769270760; bh=9 W7zPVv4VI6N/xG+0N7iCNMiModG9EiSwEEfThc/3r8=; b=ibKczv3vvqAy/5XWk 3oHF1IkMhD6RmhJ2LWPZO5+KW9c36RUd/gssYY9YOqTm2vaeJH6uIge4SJJTuOyO xLnDkKA8JWIV+Adplf4bsFbjbo31Xuo+TmxtVEuHtgoisz3Sx2HM3plRCi9XeYq2 etAgA4nZGrRy2SUE4QlJ/5yIP1mVFd683km069O3wUsNgckBSEFJBY8qzZNzf9uM hrA+u1cX3ZIoQZT/Z2fY3eRhtKBJ6ipN8P+W4GSxQGY83wLcjErkQRmSkltvZLDt eEYxHHXEu9+PaDSiA+1lW1cPrINZTNk90oVEgqFPABjEKEFEdU9aE3zN+f916k9h Uc/Jg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddugeelgeekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeeugfetieejueevffdulefhhfethfekvedtueevgfffvdef iedvtefgheevteelffenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghl ughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id A475E700069; Fri, 23 Jan 2026 11:06:00 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AbD5ce2zkO3J Date: Fri, 23 Jan 2026 10:05:28 -0600 To: "php internals" Message-ID: <53f11b44-11c1-4b23-a8be-c7846262a49c@app.fastmail.com> In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Fri, Jan 23, 2026, at 4:48 AM, Alexandre Daubois wrote: > Hello everyone, > > Before going further with our already under discussion RFC about > nullable casts, Nicolas Grekas and I would like to present this new > RFC about deprecating fuzzy casts, and adding support for Stringable > in string parameters when using strict mode. > > RFC: https://wiki.php.net/rfc/deprecate-fuzzy-casts > > Thanks, > > =E2=80=94 Alexandre Daubois 1. This really feels like two separate RFCs. I'd rather see them as two= separate RFCs than one mixed RFC. 2. I tend to agree with other commenters that we should leave the existi= ng casts alone, and instead add a new, more reasonable type conversion o= perators (for some definition of reasonable). =20 3. Unlike the other commenters, I am 100% in favor of allowing `string` = to accept Stringable in strict mode. Strict mode basically broke String= able, and that's been an annoyance for a long time. I know some feel th= at Stringable is always and forever a bad thing, amen, but I don't agree= . It has ample valid use cases, even if it can be abused. I want my St= ringable objects back! :-) --Larry Garfield