xref: /php-src/Zend/tests/bug74269.phpt (revision 92124f9c)
1--TEST--
2Bug #74269: It's possible to override trait property with different loosely-equal value
3--FILE--
4<?php
5trait PropertiesTrait
6{
7    public $same = true;
8}
9
10class PropertiesExample
11{
12    use PropertiesTrait;
13    public $same = 2;
14}
15?>
16--EXPECTF--
17Fatal 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
18