<?php
trait T
{
protected $value = "T";
}
class C
{
use T;
protected $value = "C";
public function getC()
{
return $this->value;
}
}
$c = new C();
echo $c->getC();
Fatal error: C and T define the same property ($value) in the composition of C. However, the definition differs and is considered incompatible. Class was composed in /in/lnFCM on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
Fatal error: C and T define the same property ($value) in the composition of C. However, the definition differs and is considered incompatible. Class was composed in /in/lnFCM on line 18
Process exited with code 255.