rfc:typehint_array_desctructuring

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:typehint_array_desctructuring [2020/04/16 10:00] wol-softrfc:typehint_array_desctructuring [2020/04/16 10:38] – Added union type example wol-soft
Line 69: Line 69:
     // ...     // ...
 } }
 +</code>
 +
 +The for PHP 8.0 accepted union types (https://wiki.php.net/rfc/union_types_v2) will also be allowed:
 +
 +<code php>
 +[int|float $number, string $description] = [1.5, "One point five"]
 </code> </code>
  
rfc/typehint_array_desctructuring.txt · Last modified: 2020/04/16 13:56 by wol-soft