<?php trait A { function foo() { } } class C { use A { A::foo as alias; } function foo() { // different foo } } $rm = new ReflectionMethod('C', 'alias'); echo $rm->name; echo "\n"; echo (new ReflectionClass('C'))->getMethod('alias')->name;
You have javascript disabled. You will not be able to edit any code.