bug60369.phpt 421 B

1234567891011121314151617
  1. --TEST--
  2. Bug #60369 (Crash with static property in trait)
  3. --FILE--
  4. <?php
  5. trait PropertiesTrait {
  6. static $same = true;
  7. }
  8. class Properties {
  9. use PropertiesTrait;
  10. public $same = true;
  11. }
  12. ?>
  13. --EXPECTF--
  14. Fatal 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