rfc:constructor_promotion

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:constructor_promotion [2020/05/05 12:26] nikicrfc:constructor_promotion [2020/08/01 23:38] (current) – RFC was implemented carusogabriel
Line 2: Line 2:
   * Date: 2020-03-26   * Date: 2020-03-26
   * Author: Nikita Popov <nikic@php.net>   * Author: Nikita Popov <nikic@php.net>
-  * Status: Under Discussion+  * Status: Implemented
   * Target Version: PHP 8.0   * Target Version: PHP 8.0
   * Implementation: https://github.com/php/php-src/pull/5291   * Implementation: https://github.com/php/php-src/pull/5291
Line 91: Line 91:
 </PHP> </PHP>
  
-It is also not possible to use the ''callable'' type, because it is [[https://wiki.php.net/rfc/typed_properties_v2#callable_type|not supported]] as a property types:+It is also not possible to use the ''callable'' type, because it is [[https://wiki.php.net/rfc/typed_properties_v2#callable_type|not supported]] as a property type:
  
 <PHP> <PHP>
Line 160: Line 160:
 While repeating the default value on the property declaration would currently appear harmless, there are forward-compatibility reasons why it is preferable to only specify the default once. While repeating the default value on the property declaration would currently appear harmless, there are forward-compatibility reasons why it is preferable to only specify the default once.
  
-The first is a possible future extension to allow arbitrary expression in parameter and property defaults:+The first is a possible future extension to allow arbitrary expressions in parameter and property defaults:
  
 <PHP> <PHP>
Line 466: Line 466:
 ===== Vote ===== ===== Vote =====
  
-Yes/No.+Voting started 2020-05-15 and closes 2020-05-29. 
 + 
 +<doodle title="Add support for declaring properties in the constructor signature?" auth="nikic" voteType="single" closed="true"> 
 +   Yes 
 +   No 
 +</doodle>
  
rfc/constructor_promotion.1588681618.txt.gz · Last modified: 2020/05/05 12:26 by nikic