rfc:iterable
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:iterable [2016/06/13 15:40] – Notes about object iteration trowski | rfc:iterable [2018/08/07 01:40] (current) – Change status to: Implemented in PHP 7.1 carusogabriel | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2016-06-10 | * Date: 2016-06-10 | ||
* Author: Aaron Piotrowski < | * Author: Aaron Piotrowski < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 47: | Line 47: | ||
yield 2; | yield 2; | ||
yield 3; | yield 3; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Classes extending/ | ||
+ | |||
+ | <code php> | ||
+ | interface Example { | ||
+ | public function method(array $array): iterable; | ||
+ | } | ||
+ | |||
+ | class ExampleImplementation implements Example { | ||
+ | public function method(iterable $iterable): array { | ||
+ | // Parameter broadened and return narrowed. | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 79: | Line 93: | ||
===== Voting ===== | ===== Voting ===== | ||
This proposal requires a 2/3 majority to be accepted. | This proposal requires a 2/3 majority to be accepted. | ||
+ | |||
+ | Voting began on 2016-06-24 at 6:00 pm GMT and ended on 2016-07-02 at 11:59 pm GMT | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
PR: [[https:// | PR: [[https:// |
rfc/iterable.1465832438.txt.gz · Last modified: 2017/09/22 13:28 (external edit)