rfc:automatic_property_initialization

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
Last revisionBoth sides next revision
rfc:automatic_property_initialization [2014/01/31 18:52] – added internals reception and opened voting goohrfc:automatic_property_initialization [2014/03/06 14:28] – under discussion -> declined danielc
Line 4: Line 4:
   * Date: 2013-09-27   * Date: 2013-09-27
   * Author: Gordon Oheim, gooh@php.net (patch provided by NikiC, nikic@php.net)   * Author: Gordon Oheim, gooh@php.net (patch provided by NikiC, nikic@php.net)
-  * Status: Under Discussion+  * Status: Declined
   * First Published at: https://wiki.php.net/rfc/automatic_property_initialization   * First Published at: https://wiki.php.net/rfc/automatic_property_initialization
  
Line 188: Line 188:
  
 The vote is for the current patch. You are solely voting on allowing $this->foo as constructor arguments. None of the other suggested features in this document are subject to vote. The vote is for the current patch. You are solely voting on allowing $this->foo as constructor arguments. None of the other suggested features in this document are subject to vote.
 +
 +The vote is to allow the following syntax, nothing more:
 +
 +    public function __construct($this->foo)
 +    {
 +    }
 +
 +**Notes**: The curly braces //must// be present. This syntax is //only// available for constructors. Only ''$this->'' is allowed, not ''$blah->''.
  
 Vote start: 2013/01/31 01:00 UTC Vote start: 2013/01/31 01:00 UTC
 Vote end: 2014/02/10 01:00 UTC Vote end: 2014/02/10 01:00 UTC
  
-<doodle title="Automatic Property Initialization" auth="gooh" voteType="single" closed="false">+<doodle title="Automatic Property Initialization" auth="gooh" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
 </doodle> </doodle>
rfc/automatic_property_initialization.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1