blob: fc09a367bde96c236c3d92017844a1ed773cb7aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--TEST--
Overridding Conflicting Methods should not result in a notice/warning about collisions
--FILE--
<?php
error_reporting(E_ALL);
trait THello1 {
public function hello() {
echo 'Hello';
}
}
trait THello2 {
public function hello() {
echo 'Hello';
}
}
class TraitsTest {
use THello1;
use THello2;
public function hello() {
echo 'Hello';
}
}
$test = new TraitsTest();
$test->hello();
?>
--EXPECTF--
Hello
|