summaryrefslogtreecommitdiff
path: root/Zend/tests/bug74269.phpt
blob: 53ef570fb6c4e7ed791a1ea0ba4dbc7da4e43d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #74269: It's possible to override trait property with different loosely-equal value
--FILE--
<?php
trait PropertiesTrait
{
    public $same = true;
}

class PropertiesExample
{
    use PropertiesTrait;
    public $same = 2;
}
?>
--EXPECTF--
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