Skip to content
mikeymike edited this page Mar 17, 2015 · 1 revision

Quickly viewing the state of an RFC is easy. The command will pick up all details, change logs if provided and all voting tables.

Usage

You will need to pass the RFC code to the command to identify the one to digest. You can get this code using rfc:list or if you know the URL/Name it's the last part of the URL which is generally the name in lowercase with underscores replacing spaces.

Usage:
 rfc:digest [--details] [--changelog] [--votes] [-d|--detailed] rfc

Arguments:
 rfc                   RFC Code e.g. scalar_type_hints

You can specify which sections of the RFC to show, so if you are only interested in the votes just pass --votes.

Also to show each vote pass in -d which will make the output detailed for votes.

Example Output

$ bin/php-rfc-digestor rfc:digest scalar_type_hints
RFC Details

Scalar Type Hints
+--------------------+--------------------------------------------------------------------------------------------------------------------+
| Version            |  0.3.1                                                                                                             |
| Date               |  2014-12-14 (initial draft; put Under Discussion 2014-12-31; version 0.2 created 2015-01-13; withdrawn 2015-01-15) |
| Author             |  Andrea Faulds, [email protected]                                                                                         |
| Status             |  Withdrawn                                                                                                         |
| First Published at |  http://wiki.php.net/rfc/scalar_type_hints                                                                         |
+--------------------+--------------------------------------------------------------------------------------------------------------------+

RFC ChangeLog
+--------+-------------------------------------------------------------------+
| v0.3.1 | - Noted numeric and syntax change in Future Scope                 |
| v0.3   | - Return types support                                            |
| v0.2.3 | - strict_types=1 rather than strict_typehints=TRUE                |
| v0.2.2 | - Follow robustness principle for return types under Future Scope |
| v0.2.1 | - Weak typing clarification                                       |
| v0.2   | - Introduction of optional strict hinting mode                    |
| v0.1.2 | - Noted some downsides of strict hints vs weak hints              |
| v0.1.1 | - Added table summarising casting and validation rules            |
| v0.1   | - Initial drafts                                                  |
+--------+-------------------------------------------------------------------+

RFC Votes

As this is a language change, this RFC requires a 2/3 majority to pass. Voting for all three votes started on 2015-02-05 and all were to end on 2015-02-19, but the voting was cancelled and the RFC withdrawn on 2015-02-15.

Accept the Scalar Type Hints RFC and merge patch into master?
+---------------+-----+----+
| Real name     | Yes | No |
+---------------+-----+----+
| Final result: | 67  | 34 |
+---------------+-----+----+

Type aliases
+---------------+----------------+------------------------------------------------------+----------------+
| Real name     | Allow synonyms | Reserve synonyms and produce error message when used | Do not reserve |
+---------------+----------------+------------------------------------------------------+----------------+
| Final result: | 48             | 19                                                   | 20             |
+---------------+----------------+------------------------------------------------------+----------------+

Reserve type names if RFC does not pass?
+---------------+-----+----+
| Real name     | Yes | No |
+---------------+-----+----+
| Final result: | 72  | 17 |
+---------------+-----+----+
Clone this wiki locally