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