/hphp/test/zend/good/ext/reflection/tests/bug47254.php
PHP | 17 lines | 15 code | 2 blank | 0 comment | 0 complexity | b33ca509eca2ff41852286e94cc12a36 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- class A
- {
- protected function a() {}
- }
- class B extends A
- {
- public function b() {}
- }
- <<__EntryPoint>> function main(): void {
- $B = new B();
- $R = new ReflectionObject($B);
- $m = $R->getMethods();
- print_r($m);
- }