I hope you can help me. I have this error in my php code and I cant figure out what do I need to change and where. It is showing that in this line where it in stars.
Here is my code:
private function replaceFile($id, $file, $version) {
    global $CFG;
    $source = get_record('procedure_log','procedure_id', $id);
    $destination = $CFG->dataroot . "/procedures/$id/$version/";
    @mkdir($destination, 0777, true);
    $dataobject = new stdClass();
    $dataobject->id = $this->logId;
    $dataobject->file = addslashes($destination . $file['name']);
    **copy(var_dump($source.$file['name'], $destination.$file['name'] ));**
}
 
     
    