rfc:throwable-code-generalization
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:throwable-code-generalization [2016/12/18 09:06] – wesnetmo | rfc:throwable-code-generalization [2017/01/06 17:04] – wesnetmo | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Version: 0.1 | * Version: 0.1 | ||
* Date: 2016-12-18 | * Date: 2016-12-18 | ||
- | * Author: Wes | + | * Author: Wes (@WesNetmo on Twitter) |
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Currently '' | + | Currently '' |
+ | |||
+ | As such, code that assumes that the interface always uses '' | ||
===== Proposal ===== | ===== Proposal ===== | ||
- | Allow any type to be used, including objects, even if just formally, | + | As this inconsistency is present, this RFC proposes to generalize the Throwable' |
- | - Throwable:: | + | Throwables' |
- | - Error ::__construct(string $message = "", | + | |
- | - Exception::__construct(string $message = "", | + | Specifically, |
- | - Error :: | + | |
- | - Exception:: | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 25: | Line 31: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | Next minor version, currently | + | 7.2 |
- | ===== Proposed | + | ===== Voting ===== |
- | ===== Future Scope ===== | + | 2/3 majority is required |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 35: | Line 46: | ||
===== References ===== | ===== References ===== | ||
- | N/A | + | [[http:// |
rfc/throwable-code-generalization.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1