rfc:typehint_array_desctructuring
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:typehint_array_desctructuring [2020/04/16 10:00] – wol-soft | rfc:typehint_array_desctructuring [2020/04/16 10:38] – Added union type example wol-soft | ||
---|---|---|---|
Line 69: | Line 69: | ||
// ... | // ... | ||
} | } | ||
+ | </ | ||
+ | |||
+ | The for PHP 8.0 accepted union types (https:// | ||
+ | |||
+ | <code php> | ||
+ | [int|float $number, string $description] = [1.5, "One point five"] | ||
</ | </ | ||
rfc/typehint_array_desctructuring.txt · Last modified: 2020/04/16 13:56 by wol-soft