Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129901 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 820AD1A00BC for ; Fri, 23 Jan 2026 17:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769187697; bh=IrGnAjxY7diJ4WAbqWdx0oFSJI64BZLe1/dPV7NTEGE=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Q/AsQ6jhSWUN2Ag3SggAf/wCqZguCPrBy3cbdFGi0lmUG12x0tDn9CGcAhYVxx3cS s9BcEIhNie8QKxG5DMUmvaJhtxnikn8R2Nvgwshn3rh8JCNcs6kJWb/60eF1mYXQpK v+oDvvbZUcpA3yVDovKz1FjkAr3jWea6kRRCxINwIXc1bLXM/UzadjWGOF1mw57cBI U5uFDUyLbzwRkDFg792mTLp1UErjZRgmO3Q/FYrmJy2uTR/IlP3GSAdQIK2mqnUKps ljpfoIAR64ER1OvTviFi1kgU2fIKYmV95OVLoWmAaMOEP6DQFQKUywPQ22Jhca6LDj LqffZ4TBxlPUw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 50D87180086 for ; Fri, 23 Jan 2026 17:01:36 +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_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (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, 23 Jan 2026 17:01:36 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 8759E1D00023 for ; Fri, 23 Jan 2026 12:01:30 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 23 Jan 2026 12:01:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; 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=1769187690; x=1769274090; bh=p45AV37RoB0AV9PdtHgSV9n+o8h/ZrQHoULxCjoXJvc=; b= LI1qLFNKR+x0u8ihhRABOg8ed9SyeR5PfD+1plEstyqlZ17sSs/0qUtlmd3uDOI8 POinYCLE7L4MGCGtyuKwBW5sc5LyOngLIh9FWfWdUkteKo68DV08VimA59TxtaTN 1+5NlVfyThgSZP024T5aqmHzEpNkGpvnD+iBkJVaMmOl9sGKTwNlRscnBCvaLR8z CHq4GrHRnvMGE8MntvU52ld7CErcKBk/MUt+3Hz+c6vyUlXDjvcc8KeUVrYoTg74 CdDhXKVgy6ZVQ+ejXCqMaysckxUSS6GLowLk2xhITsDHPWRtQ1hUn0VwfNMG6w3B 97UjmZevJOuP7nGfkpbAGg== 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=1769187690; x=1769274090; bh=p 45AV37RoB0AV9PdtHgSV9n+o8h/ZrQHoULxCjoXJvc=; b=WsCo6OBr75AfkcX6c nzrbCSGvvJZRvcg4lKJ7s923im4XM4JHlFOE1I/rqCD6mzOt43Txwzn7XDwuncfF DPzw1At7LSALQKK5yh1ZudlaVO6Q1L9OFZDPXsvWAv/6Jhg13EqZS2sPb5LpDfBJ K6ORdntTHVH4M66Bo5+ih2cT9QNp7qB4brmlGR/wY3ZS95Pgj8MyoVmVIAxbgHzW RkIik3TL+oLeA+uxf7XOzdfZ+JoIJ+oMYFJcxZ+Xe/4+JDbLfOI6mY7vJYbwWKvy nPnjXJyhC/X2NcWP5YFEMDsplyJb7awulxLnXy9aCGcZ/JJYuRDtZXhjIFkPyzsC NgfaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddugeelheelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepfdftohifrghn ucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtgdrtg hordhukheqnecuggftrfgrthhtvghrnhepheelffetiefgveduteefudegtdduveeludeg ueegleehiefhhefgtdekveevgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhnsggp rhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnh grlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jan 2026 12:01:29 -0500 (EST) Date: Fri, 23 Jan 2026 16:34:55 +0000 To: php internals Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_Deprecate_Fuzzy_Type_?= =?US-ASCII?Q?Casts_and_Allow_Stringable_in_Strict_Mode?= User-Agent: K-9 Mail for Android In-Reply-To: <53f11b44-11c1-4b23-a8be-c7846262a49c@app.fastmail.com> References: <53f11b44-11c1-4b23-a8be-c7846262a49c@app.fastmail.com> Message-ID: Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 23 January 2026 16:05:28 GMT, Larry Garfield = wrote: >3=2E Unlike the other commenters, I am 100% in favor of allowing `string`= to accept Stringable in strict mode=2E Strict mode basically broke String= able, and that's been an annoyance for a long time=2E I know some feel tha= t Stringable is always and forever a bad thing, amen, but I don't agree=2E = It has ample valid use cases, even if it can be abused=2E I want my Strin= gable objects back! :-) I genuinely don't understand the reasoning here=2E If you want type coerci= on, why are you running in strict_types=3D1 mode? Why would you want to all= ow objects to be coerced, but not other values with unique, well-defined, s= tring representations, like integers? Also, what do you mean by "strict mode broke Stringable"? Do you mean ther= e was some code you wrote in PHP 5 that relied on implicit object-to-string= conversion? It certainly wasn't called "Stringable" at the time; and it wo= uld have to have been internal functions, because users couldn't define "st= ring" parameters=2E Rowan Tommins [IMSoP]