/hphp/test/zend/good/ext/reflection/tests/bug47254.php

http://github.com/facebook/hiphop-php · PHP · 17 lines · 15 code · 2 blank · 0 comment · 0 complexity · b33ca509eca2ff41852286e94cc12a36 MD5 · raw file

  1. <?hh
  2. class A
  3. {
  4. protected function a() {}
  5. }
  6. class B extends A
  7. {
  8. public function b() {}
  9. }
  10. <<__EntryPoint>> function main(): void {
  11. $B = new B();
  12. $R = new ReflectionObject($B);
  13. $m = $R->getMethods();
  14. print_r($m);
  15. }