mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
21 lines
273 B
PHP
21 lines
273 B
PHP
--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)
|