function_declaration,method_argument_space.test 440 B

123456789101112131415
  1. --TEST--
  2. Integration of fixers: function_declaration,method_argument_space.
  3. --RULESET--
  4. {"function_declaration": {"trailing_comma_single_line": true}, "method_argument_space": true}
  5. --REQUIREMENTS--
  6. {"php": 80000}
  7. --EXPECT--
  8. <?php
  9. function foo($bar, ) { echo $bar.$baz; };
  10. $a = function () use ($b, $c, ): void { echo $b.$c; };
  11. --INPUT--
  12. <?php
  13. function foo($bar,) { echo $bar.$baz; };
  14. $a = function () use ($b, $c,): void { echo $b.$c; };