closure.php 259 B

12345678
  1. <?php
  2. $function1 = function($foo, $bar) use ($var) {};
  3. $function2 = function(Foo $foo, $bar) use ($var) {};
  4. $function3 = function ($foo, $bar, $baz) {};
  5. $function4 = function (Foo $foo, $bar, $baz) {};
  6. $function5 = function () {};
  7. $function6 = function() {};