<?php
trait T {
protected $prop = "foo";
}
class Bar {
use T;
protected $prop = "bar";
public function show(){ echo $this->prop; }
}
$x = new Bar;
$x->show();
Fatal error: Bar and T define the same property ($prop) in the composition of Bar. However, the definition differs and is considered incompatible. Class was composed in /in/lPFpL on line 6
Process exited with code 255.
Fatal error: Bar and T define the same property ($prop) in the composition of Bar. However, the definition differs and is considered incompatible. Class was composed in /in/lPFpL on line 12
Process exited with code 255.