| Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/traits/ |
| Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/traits/error_001.phpt |
--TEST--
Trying to use instanceof for a method twice
--FILE--
<?php
trait foo {
public function foo() {
return 1;
}
}
trait foo2 {
public function foo() {
return 2;
}
}
class A extends foo {
use foo {
foo2::foo insteadof foo;
foo2::foo insteadof foo;
}
}
?>
--EXPECTF--
Fatal error: Class A cannot extend from trait foo in %s on line %d