Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108204 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21438 invoked from network); 20 Jan 2020 19:21:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2020 19:21:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C037E18053F for ; Mon, 20 Jan 2020 09:30:16 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 20 Jan 2020 09:30:16 -0800 (PST) Received: by mail-oi1-f172.google.com with SMTP id l9so65788oii.5 for ; Mon, 20 Jan 2020 09:30:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HVy1/mW/q5VcRAO8rywoLT5kac7h3Vc6SpHuya0sR9E=; b=GiI1gnDNMxx+4QEF29JMaO/EuOzOlznaCGwC79I3R051OGh4L8FlZeXxaOMKTRBcb9 kDmT4W4/t+dJocFS5UfKD9ik1VyAZ6dJvDvtDhVeGae5FAt/mIpdaGngy+xAP3KCiH/Y NUi8Ix9xlm4wZmNHB3cHRigxGc8QcP0TUwOlAag6sTNNRVwBp1qmllZXxa6dwPNgpiIO J4oBt11C/IYb0EV40OtsWMIUINMwczEjO/7/7yxcwJpETEkmcthRl4xEQtIcVc8Md8qa YGJasKZMqhnirl/2PeSP1trxTLvjwFJzwfC0J2LUGaPSDyLwa1phTsOu6cyTsb3T06bN +/zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HVy1/mW/q5VcRAO8rywoLT5kac7h3Vc6SpHuya0sR9E=; b=XDZxe+kWjppTBO1vq+HzGnCp8VOmZfIZUYi85XgT25YqfKvW/naN2DlEooWdu0dbyp YcJoJIFgvYVU531ChMrwylxCdNQELvzGmBcQFCksxPP3OxTYmrxprUFs+ZONq3sWq6wB /rBkLrk7T9U9mtkOCF1DWttIKMxsd4LU6TAF8WTXJa2MKPXj3YN9+OP0kx4pnuRmi2fd id0RGytOcL8CNPU3CN1wD8oO5wfCSdFzkx5IQ7VyN+xE9yaZoB7hxvfLKg9xyc228D78 8pt8Bb/eDQ+jCEngY+5+JCyDHTKTP1+Y3duUX1igml64RpfHjqabbiTpRP2BnwLS/cbA YXdg== X-Gm-Message-State: APjAAAVEtXOz6S5Z688cpxQMJ9w2ZsGupF0nIYSaMW1daZRzCXemmDMq Q5X8n0wu4sREMv+eAkWabH4HcCfkZubwEvim4ae3KujfF7M= X-Google-Smtp-Source: APXvYqzQmXY3GJ8J6iynTthbwPTr2Ywzp+rJ549GhXvLFzMaBTuQ4HMQpnQ1yEjicLFBOB1RXemyMFixS6LMyf6sppA= X-Received: by 2002:aca:5745:: with SMTP id l66mr298998oib.3.1579541415497; Mon, 20 Jan 2020 09:30:15 -0800 (PST) MIME-Version: 1.0 Date: Mon, 20 Jan 2020 18:30:03 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000fa945d059c95a42e" Subject: Union types | true pseudo-type From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000fa945d059c95a42e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi internals, I'd like to bring back the topic of supporting "true" as a type in PHP 8 union types. Now that the RFC has been successfully voted, I'd like to revive the discussion about adding the "true" pseudo-type in addition to "false". In addition to my Packagist survey , I'd like to point out that I just came across a native method in the SSH2 extension, that does use true as a type: https://www.php.net/manual/en/function.ssh2-auth-none.php Returns TRUE if the server does accept "none" as an authentication method, > or an array of accepted authentication methods on failure. Of course, you could type-hint it array|bool, but the same could be said for |false. Thoughts? =E2=80=94 Benjamin --000000000000fa945d059c95a42e--