|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-06-02 13:35 UTC] jpauli@php.net
[2020-02-28 15:03 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2020-03-02 11:26 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2020-03-02 11:26 UTC] nikic@php.net
[2020-03-02 12:16 UTC] nikic@php.net
[2020-03-03 10:57 UTC] nikic@php.net
-Status: Verified
+Status: Closed
[2020-03-03 10:57 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ The Reflection API does not honor the method aliasing / conflict resolution mechanism for traits. Test script: --------------- <?php trait T1 { public function foo() { } } trait T2 { use T1 { foo as bar; } public function foo() { } } class C { use T2; } $class = new ReflectionClass('C'); foreach ($class->getMethods() as $method) { var_dump($method->getName()); } Expected result: ---------------- string(3) "bar" string(3) "foo" Actual result: -------------- string(3) "foo" string(3) "foo"