mirror of
https://github.com/php/php-src.git
synced 2026-04-19 05:51:02 +02:00
27 lines
276 B
PHP
27 lines
276 B
PHP
--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
|