rfc:returntypehint2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:returntypehint2 [2011/12/24 22:13] – [Syntactical Implementation] fitchwhrfc:returntypehint2 [2013/02/13 21:13] – [Request for Comments: Method Return Type Hints] willfitch
Line 3: Line 3:
   * Date: 2011-12-13   * Date: 2011-12-13
   * Author: Will Fitch <will.fitch@gmail.com>   * Author: Will Fitch <will.fitch@gmail.com>
-  * Status: Under Discussion+  * Status: Withdrawn
  
  
Line 180: Line 180:
 ===== Patch ===== ===== Patch =====
  
-The downloadable patch below can be applied against PHP HEADAlternatively, I keep clone a of PHP in my own GitHub sandbox.  I have provided the link to it below.  Please take note of the branch name to see the right code. +The patch for this is now outdated and gone
- +
-Patch: http://www.willfitch.com/php/returntype.patch +
- +
-Patch with nullable token: http://www.willfitch.com/php/nullable.patch +
- +
-Github: https://github.com/fitchwh/php-src (returntype branch)+
  
  
Line 196: Line 190:
   - 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 "nullable" token for declaring a method may return null   - Added a new patch which includes a "nullable" token for declaring a method may return null
 +  - Updated the RFC to take "nullable" into account and replaced the old patch with the new functionality
  
rfc/returntypehint2.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1