single_line_throw,braces.test 352 B

123456789101112131415161718
  1. --TEST--
  2. Integration of fixers: single_line_throw,braces.
  3. --RULESET--
  4. {"braces": true, "single_line_throw": true}
  5. --EXPECT--
  6. <?php
  7. throw new class() extends Exception {
  8. protected $message = "Custom message";
  9. };
  10. --INPUT--
  11. <?php
  12. throw
  13. new class()
  14. extends Exception
  15. {
  16. protected $message = "Custom message";
  17. };