bug54441.phpt 340 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #54441 (Changing trait static method visibility)
  3. --FILE--
  4. <?php
  5. trait Foo {
  6. public function bar() {}
  7. }
  8. class Boo {
  9. use Foo {
  10. bar as dontKnow;
  11. dontKnow as protected;
  12. }
  13. }
  14. ?>
  15. --EXPECTF--
  16. Fatal error: The modifiers of the trait method dontKnow() are changed, but this method does not exist. Error in %s on line %d