Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129928 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 513571ADB28 for ; Mon, 26 Jan 2026 08:46:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769417200; bh=UnmXn8NHMrkzy4hRy5uOmHFqiudYFCdu9+bKdB4e3J8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HfN/Wh+uWpXuBigWgPZDtQFINL4zEJnHfOtgdao6HpeGm3u3gMvdwRYo0FeHipTw5 eHBklfjAsVkq6xDBGr1rS4IvXmJTVDACjG8CcB9+WeC8o6R0VM71kX6gWTwN2kawmJ tBc9PtLLIC2qH2ppe9Idhn8V+5HAUlJ5u7JJSUr272K0lMNTqxbSw3iR/RO0QXj3Lw 6i1ZlZV8IQ4wbaipVi6sTEOhMKyy1id92T3T0j3f2Oi8YHC7g9C9Uttnyq/MVpfsAG Zy+IL3IIOfrdUSL8wcdA81DJewXkOCWdHA/aXORSh9AQHIP93VaIKiLPhQxNA3bkcb TiIq5HONNzXyw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8F0FC180047 for ; Mon, 26 Jan 2026 08:46:39 +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,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-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 ; Mon, 26 Jan 2026 08:46:37 +0000 (UTC) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-65807a2012fso7119895a12.0 for ; Mon, 26 Jan 2026 00:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769417191; cv=none; d=google.com; s=arc-20240605; b=Uv/3ICcrefCfFJFljhi2Y1c34sirWxKBOkQ60u/7xirU2msskMPIs1ShFyOgqdN0KE hAwXou16bKiILkbunqEjwfC1MhK9ytakLJfnaao39fftAiRNmi/34dc48qW8F4KuPePk eKjMtIehoOGbiPP8fKWJN5xjJw680SDe7DyJQLPvlVjn4VX1W2oSdJTav4rvakGBl4e0 XluslmmAy7VYwZFmPkkO64JNYmQILDOHtZJNR5WNW7NQa2hPJd3/Z71WFHIw6WSBxZMq H/U1z915DN5x5alO5Xz9GTrgOIv5Y+MOTnyqNKQdlDap6uRzI/+n0flz9zkVKJ3kGpLL f2OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UnmXn8NHMrkzy4hRy5uOmHFqiudYFCdu9+bKdB4e3J8=; fh=IivXWmMbGgA4Ak5Util6tzB3c28qMrOjVI+r9CBCrmc=; b=aUwmzmRD/eYDmPwIjQjyw5FrQHMOEubAmHAHltuvk8wl7UYaharbtXvqA16uQ0TOuC 4tw1kMcEA0zyeEdbuEJuwPFqX69JinwE44AGEWs/IlAyOe+G6TvZCFYV0zpt7lQsPxLy jnno6t1gUMEKYWymUqAkr+oG3MFDTT+5gvRl4w1+lNuNUMID++T9I3Uyr5EJ352HYtIv DGlrlq36wkpAAfBeu4OH35QVEHRWCpq+W4yvfgkorUIH7GnfE0PrXQKg0Fcin43TI11T C/3dTD4cFPBhbjHkFC/CW7ymUfaRSlkiJfKCuXZnQjZ3+Agp5BoIderyW0/tD3f1ZKHN mLBA==; 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=20230601; t=1769417191; x=1770021991; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UnmXn8NHMrkzy4hRy5uOmHFqiudYFCdu9+bKdB4e3J8=; b=E90ZvllaIZZArb79UeNsbNNfcJHCILyEGymF2pe8QF17vQqmfUBIfVikKe6hDBuCTE 5SPWdgLC6J5dimYDUqkwgGXftB1p9BxXcozOE1EjQtKda+hx9iy8ISQQXNCR3uQXqbhO WYufgEaQh80u+0dBlX8I4vfytvMar0JsIievCoKyr/zNuqtCvmdO1a0+vCoDBIZIvwDW H6lyRwQGCNverZG4UIhGwMPlspuUCf9BF73K4l3lH2Rahwcx0DJbD2x2wh1Rj91o0gU4 yzk/+dRILLLwlfj0b9i9LqNBGn27Zh76HV/8hJgsuzogF1y4XbM1FIDbtWurUl2T5vH6 SGSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769417191; x=1770021991; h=content-transfer-encoding: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=UnmXn8NHMrkzy4hRy5uOmHFqiudYFCdu9+bKdB4e3J8=; b=bzPQYwiTgriKjXtdRbSrkcsO/+5OI8W8DnWM5diYk8vw2hwAP8A14GLDV9i4NRSC6Q Bc1+k7GGYhBRKY4H6qg3Y9j5zYpO8oetcv/rZ3G8znhnJsI3d7JGXHIYpTfBUmywM+L9 VBhlB9tm6+T+oZYP56208OP7JSURUHEBYkz2RYuPaj/D+2oJT6YtFRJ9BpFxMZ7tbp8m jJdjjT2tL8TYZ3G5H+lokW/C5GncSTK1INkHT2rxu5ZcwcsGKPrIE1bRW4zxgULhOlwB FSueTmrbDdKAw2tCSzrREHYzrQkCB5tCvQVWr3MeKgMQ9C/tYnnR1qg1tcUaDqIiJq27 Yn9g== X-Gm-Message-State: AOJu0YwMggF6zZg1SQytLWt+ncUMF9L5Qzn0dUoLQiHR6siZrWhskiLh 4uUbcj5Zp7CIALkItnYxcLqYp2IJycAGR8f+YcQj9CtzVTiRJd0YNanPR9oDWJP92JdDhNeHDVd JFDLLNBPh1ZBsziUptjGPYfXH+KVSrFjd3Yex X-Gm-Gg: AZuq6aIw5xqSRduGGE6Bf7Io9+9zqEOjpEcfsgWJkz4YpsjNzj7Dkm3UCgaBcCUh8hj YIBGO2KRUdj48sExPflGH6X8bsYL5ZIFnU3zBOXQHZmhEZR2qZaFQXis9f7g1oYsWq0Xxe0E1hp +AKnV8Kj8AlQDL99vp8UhAhS8ozLbKZa+A5Gy6H1YKrmT08X8n8Dd2p5XDRz2oVc8V1QE90H6Nv 9W/s995gdBlt3awFp1t1PV3eQcf1DtBzk7rzfnKYcKhI1AtHrd4fSAl5DKB1GqfmxmkSSDMKuoB 0ejANoUK8lTm7uQ4UeHDqtQp7Q== X-Received: by 2002:a05:6402:27cb:b0:658:316c:c713 with SMTP id 4fb4d7f45d1cf-658706b3aa0mr2685227a12.13.1769417190967; Mon, 26 Jan 2026 00:46:30 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <31563ed1-ac44-47ef-9fca-3ebbfc567ba5@sandfox.me> <8A9F3BDD-1C65-4E6F-BD65-C43F017D52E2@rwec.co.uk> In-Reply-To: <8A9F3BDD-1C65-4E6F-BD65-C43F017D52E2@rwec.co.uk> Date: Mon, 26 Jan 2026 09:46:19 +0100 X-Gm-Features: AZwV_QhVJOUSXKARkDv7uNgP9G6pCiSc2AIC1LB8DdjuEVyGpBrg-LrFHuqSLqY Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode To: "Rowan Tommins [IMSoP]" Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hello Rowan, Le ven. 23 janv. 2026 =C3=A0 18:46, Rowan Tommins [IMSoP] a =C3=A9crit : > I don't think we should repurpose widely-used syntax for a different use = case. If we want new functionality, with new semantics, we should add new s= yntax for that. The rules/semantics proposed in this RFC are not new. These are validation rules applied to function arguments (see https://3v4l.org/WQJPv#vnull). This is nothing new, and it doesn't use exotic syntax, but rather a standard type declaration. For this reason, and given the complexity that it would add (even more) to the language, adding new syntax does not seem to me to be the right approach: these behaviors already exist with existing syntax that is well known to everyone. =E2=80=94 Alexandre Daubois