<?php
trait ExampleTrait
{
protected $developer;
}
class Work
{
protected $developer;
use ExampleTrait;
public function __construct()
{
$this->developer = 'Aaron';
echo $this->developer;
}
}
$work = new Work();
Strict Standards: Work and ExampleTrait define the same property ($developer) in the composition of Work. This might be incompatible, to improve maintainability consider using accessor methods in traits instead. Class was composed in /in/SUB0v on line 20
Aaron