xref: /PHP-8.2/Zend/tests/traits/bug74922.phpt (revision 897bdb42)
1--TEST--
2Bug #74922 (Composed class has fatal error with duplicate, equal const properties)
3--FILE--
4<?php
5
6const VALUE = true;
7
8trait Foo {public $var = VALUE;}
9trait Bar {public $var = VALUE;}
10class Baz {use Foo, Bar;}
11
12echo "DONE";
13
14?>
15--EXPECT--
16DONE
17