/hphp/test/zend/good/ext/reflection/tests/bug64239.php
http://github.com/facebook/hiphop-php · PHP · 18 lines · 17 code · 1 blank · 0 comment · 0 complexity · f858eec654552b06890be8c5e61797c1 MD5 · raw file
- <?hh
- class A {
- use T2 { t2method as Bmethod; }
- }
- trait T2 {
- public function t2method() {
- }
- }
- class B extends A{
- }
- <<__EntryPoint>> function main(): void {
- $obj = new ReflectionClass("B");
- print_r($obj->getMethods());
- print_r(($method = $obj->getMethod("Bmethod")));
- var_dump($method->getName());
- var_dump($method->getShortName());
- }