xref: /PHP-8.3/Zend/tests/traits/bug74922c.phpt (revision 897bdb42)
1--TEST--
2Bug #74922 (Composed class has fatal error with duplicate, equal const properties)
3--FILE--
4<?php
5
6trait T {
7    public $x = self::X;
8}
9trait T2 {
10    public $x = self::X;
11}
12class C {
13    use T, T2;
14    const X = 42;
15}
16var_dump((new C)->x);
17
18?>
19--EXPECT--
20int(42)
21