method_argument_space,statement_indentation.test 477 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Integration of fixers: method_argument_space,statement_indentation.
  3. --RULESET--
  4. {"method_argument_space": {"on_multiline" : "ensure_fully_multiline"}, "statement_indentation": true}
  5. --REQUIREMENTS--
  6. {"php": 80000}
  7. --EXPECT--
  8. <?php
  9. function foo(
  10. $foo,
  11. #[
  12. Foo\Bar,
  13. Foo\Baz,
  14. Foo\Buzz(a: 'astral', b: 1234),
  15. ]
  16. $bar
  17. ) {}
  18. --INPUT--
  19. <?php
  20. function foo($foo, #[
  21. Foo\Bar,
  22. Foo\Baz,
  23. Foo\Buzz(a: 'astral', b: 1234),
  24. ] $bar) {}