rfc:object-typehint

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:object-typehint [2016/11/15 22:49] – typo danackrfc:object-typehint [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== PHP RFC: Object typehint ====== ====== PHP RFC: Object typehint ======
-  * Version: 0.1+  * Version: 1.1
   * Date: 2016-08-12   * Date: 2016-08-12
   * Author: Michał Brzuchalski <michal.brzuchalski@gmail.com>, Dan Ackroyd <danack@php.net>   * Author: Michał Brzuchalski <michal.brzuchalski@gmail.com>, Dan Ackroyd <danack@php.net>
-  * Status: On Hold+  * Status: Implemented (in PHP 7.2)
   * First Published at: https://wiki.php.net/rfc/object-typehint   * First Published at: https://wiki.php.net/rfc/object-typehint
  
Line 189: Line 189:
 === Argument typehint contravariance === === Argument typehint contravariance ===
  
-Classes that extend another class, or implement and interface may broaden a parameter type from a specific class, to more generic 'object' typehint.+Classes that extend another class, or implement an interface may broaden a parameter type from a specific class, to more generic 'object' typehint.
  
 <code php> <code php>
Line 286: Line 286:
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
-As this is a language change, a 2/3 majority is required. The vote is a straight Yes/No vote for accepting the RFC and merging the patch.+Voting will run from 2017-05-17, for two weeks, until 2017-05-31. 
 +As this is a language change, a 2/3 majority is required. 
 +The vote is a straight Yes/No vote for accepting the RFC and merging the patch
 +The additional vote is also a straight Yes/No vote for accepting variance behaviour on the object type.
  
-<doodle title="Accept the object typehint RFC with covariance patch for PHP 7.2?" auth="brzuchal" voteType="single" closed="true">+<doodle title="Accepting the object typehint RFC for PHP 7.2?" auth="brzuchal" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle> 
 + 
 +<doodle title="Object type should implement variance?" auth="brzuchal" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 295: Line 303:
 ===== Patches and Tests ===== ===== Patches and Tests =====
   * PR[[https://github.com/php/php-src/pull/2080|#2080]]   * PR[[https://github.com/php/php-src/pull/2080|#2080]]
 +  * Online Runtime Execution at [[https://3v4l.org/|3v4l.org]] on tab "RFC Branches"
 +
 +===== Discussions =====
 +
 +  * [[https://externals.io/thread/514|[RFC][DISCUSSION] Object type hint, now with added variance]]
 +  * [[https://externals.io/thread/412|[RFC][DISCUSSION] Object type hint]]
 +
rfc/object-typehint.1479250192.txt.gz · Last modified: 2017/09/22 13:28 (external edit)