<?php
trait T {
public $prop = "foo";
}
class Base {
public $prop = "base";
}
class Bar extends Base{
use T;
public function show(){ echo $this->prop; }
}
$x = new Bar;
$x->show();
Fatal error: Base 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/aQFap on line 11
Process exited with code 255.
Fatal error: Base 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/aQFap on line 16
Process exited with code 255.