public function merge(File $other): self
    {
        $new = new static($this->filename);
        $new->issues = array_merge($this->issues, $other->issues);
        return $new;
    }
public function merge(File $other): self
    {
        $new = new static($this->filename);
        $new->issues = array_merge($this->issues, $other->issues);
        return $new;
    }
public function merge ( File $ other ) : self { $ new = new static ( $ this -> filename ) ; $ new -> issues = array_merge ( $ this -> issues , $ other -> issues ) ; return $ new ; }
Merges this file report with another file report

@param File $other The file report to merge this report with
@return File The merged report
Merges this file report with another file report