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 revisionBoth sides next revision
rfc:constructor_promotion [2020/05/15 08:09] nikicrfc:constructor_promotion [2020/05/15 12:14] – Fix a couple typos theodorejb
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>
rfc/constructor_promotion.txt · Last modified: 2020/08/01 23:38 by carusogabriel