rfc:mixed_type_v2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:mixed_type_v2 [2020/04/20 01:12] – danack | rfc:mixed_type_v2 [2020/04/20 11:20] – danack | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Author: Máté Kocsis < | * Author: Máté Kocsis < | ||
* Based on previous RFC by: Michael Moravec | * Based on previous RFC by: Michael Moravec | ||
- | | + | * Status: |
- | | + | * Implementation: |
- | * Implementation: | + | |
* First Published at: https:// | * First Published at: https:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | With the addition of scalar types in PHP 7, nullables in 7.1, `object` in 7.2, and lastly, union types in 8.0, people writing PHP code can explicitly declare type information for most function parameters, function returns, as well as class properties. | + | With the addition of scalar types in PHP 7, nullables in 7.1, object in 7.2, and lastly, union types in 8.0, people writing PHP code can explicitly declare type information for most function parameters, function returns, as well as class properties. |
However, PHP has not always supported types, and most probably it will always allow to omit type information. But this leads to the problem that its meaning is ambiguous when type information is missing: | However, PHP has not always supported types, and most probably it will always allow to omit type information. But this leads to the problem that its meaning is ambiguous when type information is missing: | ||
Line 295: | Line 294: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | Since PHP 7.0, '' | + | Since PHP 7.0, '' |
===== To SAPIs ===== | ===== To SAPIs ===== |
rfc/mixed_type_v2.txt · Last modified: 2020/05/22 14:22 by kocsismate