Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117358 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64525 invoked from network); 17 Mar 2022 14:43:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Mar 2022 14:43:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 747F3180541 for ; Thu, 17 Mar 2022 09:09:12 -0700 (PDT) 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, T_SCC_BODY_TEXT_LINE 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-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (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 ; Thu, 17 Mar 2022 09:09:12 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id u103so11057778ybi.9 for ; Thu, 17 Mar 2022 09:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zqU2aLRZfwSF4cxlkE5jpqh1d58dhIYZe7xcz2eQCoQ=; b=Bw9sO204hhyNEtx1O0unjyXJ81zjSR+aecGA7hRRNY7w7fM+OmF+y2y04HoBjwyrkK Nz756hRVaD8ZqFzj5DaEcR1fIaqDYJa37fx7+j+CVmAm9ci+fTPFAnN5z2cRfonJd73J YOZOd/KWzrEl7JcC8IlXzA8BCZ9EXQDpPzI18MPEIzVvbI7DUqT0B36esGPyAcXaCHBg lrNfLWBqJ1cB4PZENCnQv+0RJFhg7j6fAf6FwBhmkbdtr6GFS5rzqJ/x4LyYnqOxxUaF wc1B30PHwEsi5H74jrSLvBUHJA4LA0UT9Y6EIXczrSGQzmPVzZ4o1q9CyEyNk/lsU62e VrJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zqU2aLRZfwSF4cxlkE5jpqh1d58dhIYZe7xcz2eQCoQ=; b=g2GQzrcJVGgTK5Bnw4eVB42RqfzqzhugYHyA4EYJ3r5Yy5NI46XhNTkRUxKW9gpUjO X0LBiya0w4ULjk3clXQR/oh4/SsHGRa8Sd8k4HJJxHgIf/ssr9E0YhXHWJ5e229uo38E 2UX67We+8K3201J/KmhJ5ugJVLXeCdqE+WPfQ7D7FfVNqPugTvZ9piuosKwN+5dbzYwR MwfFx8ZoKVR8e8aCSPa7vefW0POc2ud17I7xUFIzfa5rOlr3YUsqjNMjzJ1LSmtZyYe0 wzCxQmLhrxYHK/XqU8zerQAcyvNlDqAGBZ8raP3P0bNp+HYeZol3nd1uPhTmXyoSapca 6ciw== X-Gm-Message-State: AOAM530pzhvzO2YvrPUizrGw2FPFbQWsBCfjNqMxFFT6/6zx7ZBYwukW fr+qidgPA4BruQ1FDopyjNXX7jc4dWhFdwu3cOWFJK+1N8w= X-Google-Smtp-Source: ABdhPJx874XipF4usXyTfs3HK88e+bOkwpPSOB8OE9TpLwUYQT3jKg+1dN+gllFKVWeDbGDzFsSbwRgORkOnan0Jpm8= X-Received: by 2002:a25:2317:0:b0:629:169e:2b1a with SMTP id j23-20020a252317000000b00629169e2b1amr5640611ybj.385.1647533351412; Thu, 17 Mar 2022 09:09:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 17 Mar 2022 16:09:00 +0000 Message-ID: To: Levi Morrison Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000002aa74e05da6c403d" Subject: Re: [PHP-DEV] [RFC] [VOTE] Allow null and false as stand-alone types From: george.banyard@gmail.com ("G. P. B.") --0000000000002aa74e05da6c403d Content-Type: text/plain; charset="UTF-8" On Thu, 17 Mar 2022 at 15:54, Levi Morrison wrote: > On Sat, Mar 12, 2022 at 10:32 AM G. P. B. > wrote: > > > > I've started voting for the Allow null and false as stand-alone types > RFC: > > https://wiki.php.net/rfc/null-false-standalone-types > > > > Voting will last for 2 weeks until 26th of March. > > > > Best regards, > > > > George P. Banyard > > Hello, > > I have voted yes, despite this clause: > > > Moreover, a function which has a void return type must only use return; > whereas one with null must use return null;. > > IMO, it should allow any expression including just `return;` and let > the runtime fail if it needs to. > This behaviour is the current behaviour in PHP, see: https://3v4l.org/1m0Mk and https://3v4l.org/d19rd It might make sense to change this, but this is out of scope for this RFC. Best regards, George P. Banyard --0000000000002aa74e05da6c403d--