The expression return $res could return the type iterable which is incompatible with the type-hinted return TBolier\RethinkQL\Response\ResponseInterface. Consider adding an additional type-check to rule them out.
Loading history...
47
}
48
49
/**
50
* @param int|string $id
51
* @param int $number
52
* @return ResponseInterface
53
*/
54
protected function insertDocumentWithNumber($id, int $number): ResponseInterface