php-8.0.30-src/Zend/tests/traits/bug63911.phpt

28 lines
279 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