/hphp/test/zend/good/ext/reflection/tests/bug64239.php
PHP | 18 lines | 17 code | 1 blank | 0 comment | 0 complexity | f858eec654552b06890be8c5e61797c1 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 {
- 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());
- }