final_class,protected_to_private.test 298 B

12345678910111213141516171819
  1. --TEST--
  2. Integration of fixers: final_class,protected_to_private.
  3. --RULESET--
  4. {"final_class": true, "protected_to_private": true}
  5. --EXPECT--
  6. <?php
  7. final class Foo
  8. {
  9. private $bar;
  10. private function baz() {}
  11. }
  12. --INPUT--
  13. <?php
  14. class Foo
  15. {
  16. protected $bar;
  17. protected function baz() {}
  18. }