rfc:noreturn_type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:noreturn_type [2021/03/10 19:46] – Add extra vote mattbrown | rfc:noreturn_type [2021/03/19 15:48] – Add returning by reference example mattbrown | ||
---|---|---|---|
Line 123: | Line 123: | ||
{ | { | ||
public function execute(): void {} // Fatal error | public function execute(): void {} // Fatal error | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Returning by reference with a '' | ||
+ | |||
+ | <code php> | ||
+ | class A { | ||
+ | public function & | ||
+ | } | ||
+ | class B extends A { | ||
+ | public function & | ||
} | } | ||
</ | </ |
rfc/noreturn_type.txt · Last modified: 2021/04/19 09:31 by nikic