rfc:counting_non_countables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:counting_non_countables [2016/10/11 09:46] – Convert markdown to wikitext duncan3dcrfc:counting_non_countables [2016/10/17 20:47] – Remove the outstanding question about count(null) duncan3dc
Line 1: Line 1:
 ====== PHP RFC: Counting of non-countable objects ====== ====== PHP RFC: Counting of non-countable objects ======
-  * Version: 0.2+  * Version: 0.3
   * Date: 2016-10-04   * Date: 2016-10-04
   * Author: Craig Duncan <git@duncanc.co.uk>   * Author: Craig Duncan <git@duncanc.co.uk>
Line 27: Line 27:
 ===== Proposal ===== ===== Proposal =====
  
-This RFC proposes deprecating count with a parameter that is a scalar or an object that doesn't implement Countable.+This RFC proposes deprecating count with a parameter that is a scalar, null, or an object that doesn't implement Countable.
  
 //Note that the sizeof alias is also affected.// http://php.net/manual/en/function.sizeof.php //Note that the sizeof alias is also affected.// http://php.net/manual/en/function.sizeof.php
Line 38: Line 38:
  
 PHP 7.2 PHP 7.2
- 
-===== Open Issues ===== 
- 
-  * At the moment ''count(null)'' returns ''0'', should this be deprecated too 
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
rfc/counting_non_countables.txt · Last modified: 2018/03/01 23:26 by carusogabriel