xref: /PHP-7.2/Zend/tests/traits/bug60369.phpt (revision f1d7e3ca)
1--TEST--
2Bug #60369 (Crash with static property in trait)
3--FILE--
4<?php
5
6trait PropertiesTrait {
7   static $same = true;
8}
9
10class Properties {
11   use PropertiesTrait;
12   public $same = true;
13}
14
15?>
16--EXPECTF--
17Fatal error: Properties and PropertiesTrait define the same property ($same) in the composition of Properties. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
18