Re: [RFC] Counting of non-countable objects

From: Date: Mon, 17 Oct 2016 20:57:13 +0000
Subject: Re: [RFC] Counting of non-countable objects
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-96399@lists.php.net to get a copy of this message
On Mon, Oct 17, 2016 at 10:50 PM, Craig Duncan <php@duncanc.co.uk> wrote: > I've updated the RFC now to include count(null) which resolves the final > open question. > > If there isn't any more feedback I'll open voting in a few days > > https://wiki.php.net/rfc/counting_non_countables > > Thanks, > Craig > I'm not sure I understand the motivation for throwing a deprecation notice instead of a warning. In particular, what is the action that will be taken here in the next major version? I guess we would throw a warning and return false (instead of 0/1). But is the change of return value from 0/1 to false really sufficiently worthwhile to go with a deprecation first? In any case, if you want to go with deprecation, please specify what action this RFC implies for PHP 8. Nikita

« previous php.internals (#96399) next »