blob: 90dd8ca92ddb6afde05b9d98fbb0e4ee1acc6d35 (
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
32
33
34
35
36
|
--TEST--
"Potentially" conflicting trait properties do not result in a strict standards notice anymore
--FILE--
<?php
error_reporting(E_ALL);
trait THello1 {
private $foo;
}
trait THello2 {
private $foo;
}
echo "PRE-CLASS-GUARD-TraitsTest\n";
class TraitsTest {
use THello1;
use THello2;
}
echo "PRE-CLASS-GUARD-TraitsTest2\n";
class TraitsTest2 {
use THello1;
use THello2;
}
var_dump(property_exists('TraitsTest', 'foo'));
var_dump(property_exists('TraitsTest2', 'foo'));
?>
--EXPECT--
PRE-CLASS-GUARD-TraitsTest
PRE-CLASS-GUARD-TraitsTest2
bool(true)
bool(true)
|