/hphp/test/zend/good/Zend/tests/bug64239_1.php
PHP | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | 79520770d48b3916f2b4977b6bd1bef1 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; }
- }
- class B extends A {
- }
- trait T2 {
- public function t2method() {
- }
- }
- <<__EntryPoint>> function main(): void {
- print_r(get_class_methods("A"));
- print_r(get_class_methods("B"));
- }