mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
d9219f997d
I don't think there is any reason to disable this anymore, at least all the messages generated in tests look correct and more useful.
32 lines
529 B
PHP
32 lines
529 B
PHP
--TEST--
|
|
Two methods resulting in a conflict, should be reported both.
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
|
|
trait A {
|
|
public function smallTalk() {
|
|
echo 'a';
|
|
}
|
|
public function bigTalk() {
|
|
echo 'A';
|
|
}
|
|
}
|
|
|
|
trait B {
|
|
public function smallTalk() {
|
|
echo 'b';
|
|
}
|
|
public function bigTalk() {
|
|
echo 'B';
|
|
}
|
|
}
|
|
|
|
class Talker {
|
|
use A, B;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Trait method B::smallTalk has not been applied as Talker::smallTalk, because of collision with A::smallTalk in %s on line %d
|