rfc:arrow_functions_v2
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:arrow_functions_v2 [2019/03/14 09:24] – Clarify $this binding nikic | rfc:arrow_functions_v2 [2019/05/01 08:39] – Accepted nikic | ||
---|---|---|---|
Line 6: | Line 6: | ||
* Target version: PHP 7.4 | * Target version: PHP 7.4 | ||
* Implementation: | * Implementation: | ||
- | * Status: | + | * Status: |
===== Introduction ===== | ===== Introduction ===== | ||
Line 259: | Line 259: | ||
===== Vote ===== | ===== Vote ===== | ||
- | Simple yes/no vote. | + | Voting started 2019-04-17 and ends 2019-05-01. A 2/3 majority is required. |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 575: | Line 580: | ||
<PHP> | <PHP> | ||
$x = 1; | $x = 1; | ||
- | $fn = () => $x++; | + | $fn = fn() => $x++; |
$fn(); | $fn(); | ||
var_dump($x); | var_dump($x); |
rfc/arrow_functions_v2.txt · Last modified: 2020/08/01 23:53 by carusogabriel