How do you overwrite a trait function from vendor.
Things i did try in the di.xml
<preference for="\Vendor\Module\Traits\Model\ChangeMe"
type="\Company\Module\Traits\Model\ChangeMe"/>
In my class
namespace \Company\Module\Traits\Model;
class ChangeMe
{
use \Vendor\Module\Traits\Model\ChangeMe {
overrideFunction as private traitOverrideFunction;
}
public function overrideFunction()
{
dd('over here');
}
}
But it still calls the vendor class