rfc:short-syntax-for-anonymous-function

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
rfc:short-syntax-for-anonymous-function [2013/02/19 13:13] – [Adding variables to the function scope] mdrfc:short-syntax-for-anonymous-function [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 62: Line 62:
  
 function it($testName, callable $test) { function it($testName, callable $test) {
-    print("    $test" . PHP_EOL);+    print("    $testName" . PHP_EOL);
     $test();     $test();
 } }
rfc/short-syntax-for-anonymous-function.1361279630.txt.gz · Last modified: 2017/09/22 13:28 (external edit)