Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89575 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59029 invoked from network); 3 Dec 2015 15:43:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2015 15:43:34 -0000 Authentication-Results: pb1.pair.com header.from=mail@dasprids.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mail@dasprids.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dasprids.de from 46.4.80.198 cause and error) X-PHP-List-Original-Sender: mail@dasprids.de X-Host-Fingerprint: 46.4.80.198 server1.dasprids.de Received: from [46.4.80.198] ([46.4.80.198:36597] helo=mail.dasprids.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/99-02069-42360665 for ; Thu, 03 Dec 2015 10:43:33 -0500 Received: from [192.168.0.86] (unknown [5.158.132.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mail@dasprids.de) by mail.dasprids.de (Postfix) with ESMTPSA id B392934401CD for ; Thu, 3 Dec 2015 16:43:29 +0100 (CET) To: internals@lists.php.net References: Message-ID: <5660633B.9040203@dasprids.de> Date: Thu, 3 Dec 2015 16:43:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Something|null return type declaration From: mail@dasprids.de (Ben Scholzen 'DASPRiD') On 03.12.2015 15:58, Tom Worster wrote: > Not being a regular on this list, I want to ask if there is history of > discussion of a "something or nul" return type declaration for PHP 7. > > I'm only interested in this narrowly defined change, the PHP equivalent of a > `/** @return Something|null */` dockblock tag *without* generalizing to `/** > @return A|B|C... */`. > > If this is already argued to death, or even just a bit, I'd like to read the > RFC(s) and discussion. Grateful for pointers. There's an RFC for union types: https://wiki.php.net/rfc/union_types As far as I know, there was a general consent against a simple nullable hint. -- Ben Scholzen 'DASPRiD' Community Review Team Member | mail@dasprids.de Zend Framework | http://www.dasprids.de