rfc:scalar-pseudo-type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:scalar-pseudo-type [2017/12/24 17:18] – Layout Fix fleshgrinder | rfc:scalar-pseudo-type [2017/12/24 23:33] (current) – Added object to the analogous list of other types fleshgrinder | ||
---|---|---|---|
Line 10: | Line 10: | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | This RFC proposes a new '' | + | This RFC proposes a new '' |
'' | '' | ||
Line 81: | Line 81: | ||
The function [[https:// | The function [[https:// | ||
+ | |||
+ | ====== Weak Mode ====== | ||
+ | Objects with a magic '' | ||
====== Examples ====== | ====== Examples ====== | ||
Line 93: | Line 96: | ||
However, it is also useful in userland. | However, it is also useful in userland. | ||
+ | |||
+ | <code php> | ||
+ | interface Parser { | ||
+ | /** @return static */ | ||
+ | function parse(scalar $input); | ||
+ | } | ||
+ | </ | ||
<code php> | <code php> | ||
Line 147: | Line 157: | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
'' | '' | ||
- | |||
- | ===== Open Issues ===== | ||
- | * Whether '' | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== |
rfc/scalar-pseudo-type.1514135900.txt.gz · Last modified: 2017/12/24 17:18 by fleshgrinder