rfc:stringable
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:stringable [2020/01/22 15:29] – nicolasgrekas | rfc:stringable [2020/02/12 14:46] – nicolasgrekas | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Version: 0.9 | * Version: 0.9 | ||
* Date: 2020-01-15 | * Date: 2020-01-15 | ||
- | * Author: Nicolas Grekas, | + | * Author: Nicolas Grekas, |
* Status: Under Discussion | * Status: Under Discussion | ||
* First Published at: http:// | * First Published at: http:// | ||
Line 8: | Line 8: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This RFC introduces a new '' | + | This RFC introduces a new '' |
It has two goals: | It has two goals: | ||
- | - allow using '' | + | - allow using '' |
- provide a forward upgrade path from PHP 7 to 8 | - provide a forward upgrade path from PHP 7 to 8 | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Goal 1. is to allow using the '' | + | Goal 1. is to allow using the '' |
- | Classes that implement '' | + | Classes that implement '' |
- | By being simple and without any magic capabilities on its own, this interface is trivially polyfilled on PHP < 8. | + | Once a polyfill becomes widely available (e.g. [[https:// |
- | + | ||
- | Once a polyfill becomes widely available (e.g. as part of symfony/ | + | |
Here is the stub declaration of the interface: | Here is the stub declaration of the interface: | ||
Line 50: | Line 48: | ||
===== RFC Impact ===== | ===== RFC Impact ===== | ||
==== To Existing Extensions ==== | ==== To Existing Extensions ==== | ||
- | Extensions will need to add the '' | + | Extensions will need to declare both the interface and the '' |
===== Open Issues ===== | ===== Open Issues ===== | ||
Line 62: | Line 60: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Accept the proposed interface for PHP 8.0: yes/no | + | yes/no |
+ | |||
+ | ===== Vote ===== | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== |
rfc/stringable.txt · Last modified: 2020/08/01 23:38 by carusogabriel