rfc:reference_reflection

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:reference_reflection [2019/01/30 10:03] – Start voting nikicrfc:reference_reflection [2019/02/01 11:18] – typo nikic
Line 24: Line 24:
 While this approach currently works, it is slow and convoluted. To make matters worse, this approach will no longer work reliably in PHP 7.4, due to the introduction of [[rfc:typed_properties_v2|typed properties]]. If ''$array1[$key]'' is a reference to a property with a certain type, then the assignment of the cookie may trigger a ''TypeError''. While this approach currently works, it is slow and convoluted. To make matters worse, this approach will no longer work reliably in PHP 7.4, due to the introduction of [[rfc:typed_properties_v2|typed properties]]. If ''$array1[$key]'' is a reference to a property with a certain type, then the assignment of the cookie may trigger a ''TypeError''.
  
-This RFC proposed to introduce a first-class API for reflection of references, to solve this type of rare, but also fundamental problem.+This RFC proposes to introduce a first-class API for reflection of references, to solve this type of rare, but also fundamental problem.
  
 ===== Proposal ===== ===== Proposal =====
rfc/reference_reflection.txt · Last modified: 2019/02/13 11:26 by nikic