1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--TEST-- Bug #63911 (Ignore conflicting trait methods originationg from identical sub traits) --FILE-- <?php trait A { public function a(){ echo 'Done'; } } trait B { use A; } trait C { use A; } class D { use B, C; } (new D)->a(); ?> --EXPECT-- Done