rfc:noreturn_type
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:noreturn_type [2021/03/19 15:48] – Add returning by reference example mattbrown | rfc:noreturn_type [2021/03/30 15:03] – mattbrown | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2021-03-10 | * Date: 2021-03-10 | ||
* Author: Matt Brown < | * Author: Matt Brown < | ||
- | * Status: | + | * Status: |
* Proposed Version: PHP 8.1 | * Proposed Version: PHP 8.1 | ||
* Implementation: | * Implementation: | ||
Line 134: | Line 134: | ||
class B extends A { | class B extends A { | ||
public function & | public function & | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Returning '' | ||
+ | |||
+ | <code php> | ||
+ | class A implements Stringable { | ||
+ | public function __toString(): | ||
+ | return " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | class B extends A { | ||
+ | public function __toString(): | ||
+ | throw new \Exception(' | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 233: | Line 249: | ||
Draft implementation here: https:// | Draft implementation here: https:// | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
+ | |||
+ | Voting opens 2021-03-30 and 2021-04-13 at 11:00:00 AM EDT. 2/3 required to accept. | ||
- | Yes/no vote for adding '' | + | <doodle title=" |
+ | | ||
+ | * No | ||
+ | </doodle> | ||
- | Vote for '' | + | <doodle title=" |
+ | * noreturn | ||
+ | * never | ||
+ | </ |
rfc/noreturn_type.txt · Last modified: 2021/04/19 09:31 by nikic