summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug74922c.phpt
blob: 367bbf4eababd41498ec2b7a711c8a53367d6601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #74922 (Composed class has fatal error with duplicate, equal const properties)
--FILE--
<?php

trait T {
    public $x = self::X;
}
trait T2 {
    public $x = self::X;
}
class C {
    use T, T2;
    const X = 42;
}
var_dump((new C)->x);

?>
--EXPECT--
int(42)