abstract_method_4.phpt 334 B

1234567891011121314151617181920
  1. --TEST--
  2. Visibility enforcement on abstract trait methods
  3. --FILE--
  4. <?php
  5. trait T {
  6. abstract public function method(int $a, string $b);
  7. }
  8. class C {
  9. use T;
  10. /* For backwards-compatibility reasons, visibility is not enforced here. */
  11. private function method(int $a, string $b) {}
  12. }
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. ===DONE===