1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/Zend/tests/traits/bug63911.phpt

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