Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128952 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 9A6F71A00BC for ; Fri, 24 Oct 2025 12:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761309848; bh=+LaW4ppYtGARIPBHE8a6T1MmVK40FNQfyrezJBNOxtE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Uc3nqcaAdq2Q/7el3D8cvnTtWGCzqxYHyOlE8pgwFzf7dMRWBTv754id8BiLd09sp MrLA6XB9i+A3KO8MpfzAHcSr/nwNtt27x3lomJLxuy6Ns+bGZc2LzWt/vXLpzwAUVR cFLPYWk0ACY0Gdi6clt5YB8isrce8VcQqmmvaWxMRHjlvpSwcHLgNmcVNL5gNvO+eX tu4p5Ke8ZY9B7E9BWUutt6Z3HPb9tGJSjqkzxt6hS/J1fed91TGc1Elkm+11htsbES tQCmsG6nvAGPl6cakd/yi1uRV59o0yXR7NWqmSUWh5iv95ASsHV+304AdosI4UxpKu fyMS0cWidLUaw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A79DE180078 for ; Fri, 24 Oct 2025 12:44:07 +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=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-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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, 24 Oct 2025 12:44:07 +0000 (UTC) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-63bdfd73e6eso6017283a12.0 for ; Fri, 24 Oct 2025 05:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761309841; x=1761914641; 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=UdczmB/NaCE+hXeUrFIEiQUZa0TkN0kxkeu3n2dIQaE=; b=jye1TT1WU4GbS0NdVTfklA7i4vqAsRYs0FchNAFiyH2piGJoR44PtgQz8TpsCvx9v3 voqkFHLveZMKawv0hPhrjFg0aZiWuP1E3C8wip20AdWr5CzSn8uNK2tAvTb41gIKvgIB UaBU0wsRrag8a4pHQNxDFvYAJ4WeU5lkJXbpYqQt/rot7t9bKCc3Ux3JutW1hCwSe8Vi d++fTAP5wrb0SYZQil0+jA2Zg6OSKJCWglkKHpRBq1U8Y/OvmYCPzK9vOzP5444AxwNg KLpO6dAIbT1KQQkx2OCWtp/aaqzCNyF9SH1jioTvwLRkIulzLyLLotV7/XWJFzbXQ9KZ OYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761309841; x=1761914641; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UdczmB/NaCE+hXeUrFIEiQUZa0TkN0kxkeu3n2dIQaE=; b=JDEmE5x4fiTKOiuFj3pbNcKX4L4n56oeNvlAh4+jYM4ryXMu9HDXaLlcnZQCpC7wac RXb78y412toCxEc8eahp1BASbGoZOaV8GwNtrrdJkr+/FRHNAOYXwvRgU4BWyNruxGcA 90008L4nf7MmzqqCjuOrLpgLanpbxHXKQ1synzjXfVv1Tu7QZ7lHLFEj3JL24U7v17lb e75Kk7zywMnd0U7/eV27xhi3Qj3FUiGuFWKVG/NoDA2RLQ80O+8pPUdOrKHXkj8UjOaf XAAx6mzg/A+bGEqU2VGjOk2x777cFPpLoSQ/4APd8x5dHOjxnwtCswy/0Y3WoBF5x1pM kwRQ== X-Gm-Message-State: AOJu0YwPCQxY993VhGt8vJBWIqtllZWUM++jyoXF/moFX5+VETKHLoS0 aMd9aS0sJjhSdI66SfEBfosORwhtYTN4JAP0ggotXCUBng5PLc2jZwD664V5m2n5O57y1YrnSv+ yZELjqZbEqA4WiJXnPjhsbMjY//lmCdyP7A== X-Gm-Gg: ASbGncu/WXc84fySMxViaVgTXGrOB6ne4/CzmOWdP6V0VZSlVu6y0VNTD6iqyqD0/BM JdbFDwcOd/GoTktK/FamRQZ3yYEjTmvDeSgvctJhuZsQ21BblCzXvB1Cy8qZ7oRGiSI7LTp9/AV 7d7OyAtIek3nS7sVomz2sCTxiDq9ewdBNpAxoi9LW6QF2CrsCKnX6QdJVXh1E+i+FXPnYxyxDcP QAkMF++5BXy21KmTv2Rfdq5oeyTd9Fz46/gWQFcXBdhvYmvx4E2Emn9LxKe2j9rrQA0sXxAAL69 Kymu X-Google-Smtp-Source: AGHT+IGxnj+aZfRKIi8HT6v4p+9YJ63C0yqV7ilNsPegUehyKfMgvz1yyUXBPQ/UM98zIHhhqnbnx/vT3CFNKBq6oU0= X-Received: by 2002:a05:6402:31ab:b0:63e:6f2a:679 with SMTP id 4fb4d7f45d1cf-63e6f2a06a8mr412322a12.2.1761309841153; Fri, 24 Oct 2025 05:44:01 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 24 Oct 2025 14:43:50 +0200 X-Gm-Features: AWmQ_blEgaU5XFLXd72UB_Fk1NFeh6VvpUxqFr1tUFuu9eBDHEakBudLi_HaMMQ Message-ID: Subject: Re: [PHP-DEV] [RFC] Nullable and non-nullable cast operators To: Lynn Cc: PHP internals list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: alex.daubois+php@gmail.com (Alexandre Daubois) Hi Lynn, > - In the RFC the "Behavior Comparison Table" the colors make it hard to = read what's listed in the table, could this be adjusted? Unfortunately this is the default style rendered by the PHP website. But I can see if plain text could help readability. Let me check. > // would be nice if it incorporated an "isset check" as it's effectively = treated as a null value > $quantity =3D ((?int) $_POST['quantity']) ?? 0; I understand that it would probably help, but we prefer to keep this proposition consistent with the current coercion rules of the core and avoid adding more special rules to the numerous existing ones. =E2=80=94 Alexandre Daubois