mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
18 lines
341 B
PHP
18 lines
341 B
PHP
--TEST--
|
|
Invalid conflict resolution (unused trait as rhs of "insteadof")
|
|
--FILE--
|
|
<?php
|
|
trait T1 {
|
|
function foo() {echo "T1\n";}
|
|
}
|
|
trait T2 {
|
|
function foo() {echo "T2\n";}
|
|
}
|
|
class C {
|
|
use T1 {
|
|
T1::foo insteadof T2;
|
|
}
|
|
}
|
|
--EXPECTF--
|
|
Fatal error: Required Trait T2 wasn't added to C in %slanguage016.php on line %d
|