rfc:returntypehint2
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:returntypehint2 [2011/12/24 22:08] – [Functional Implementation] fitchwh | rfc:returntypehint2 [2011/12/24 22:14] – [Changelog] fitchwh | ||
---|---|---|---|
Line 28: | Line 28: | ||
This implementation of return type hinting follows the same approach. | This implementation of return type hinting follows the same approach. | ||
- | ** Update: allowing | + | === Returning |
+ | |||
+ | By default, if you specify | ||
=== Example Implementations === | === Example Implementations === | ||
Line 61: | Line 63: | ||
{ | { | ||
return ' | return ' | ||
+ | } | ||
+ | | ||
+ | // The nullable keyword allows you to return null | ||
+ | protected nullable ArrayObject getArrayObject() | ||
+ | { | ||
+ | return null; | ||
} | } | ||
| | ||
Line 175: | Line 183: | ||
Patch: http:// | Patch: http:// | ||
- | |||
- | Patch with nullable token: http:// | ||
Github: https:// | Github: https:// | ||
Line 188: | Line 194: | ||
- Updated to remove allowing NULL to be returned unconditionally when declaring return types | - Updated to remove allowing NULL to be returned unconditionally when declaring return types | ||
- Added a new patch which includes a " | - Added a new patch which includes a " | ||
+ | - Updated the RFC to take " | ||
rfc/returntypehint2.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1