How to resolve a property name conflict when a class uses two Traits with homonymous properties?
Example:
<?php
trait Video {
public $name = 'v';
}
trait Audio {
public $name = 'a';
}
class Media {
use Audio, Video;
}
$media = new Media();
$media->name;
I've tried insteadof (Video::name insteadof Audio) and (Video::name as name2) without success.
Thanks in advance !