bug74269.phpt 468 B

1234567891011121314151617
  1. --TEST--
  2. Bug #74269: It's possible to override trait property with different loosely-equal value
  3. --FILE--
  4. <?php
  5. trait PropertiesTrait
  6. {
  7. public $same = true;
  8. }
  9. class PropertiesExample
  10. {
  11. use PropertiesTrait;
  12. public $same = 2;
  13. }
  14. ?>
  15. --EXPECTF--
  16. Fatal error: PropertiesExample and PropertiesTrait define the same property ($same) in the composition of PropertiesExample. However, the definition differs and is considered incompatible. Class was composed in %s