The expression return $length % $this->...ter : $partsCounter + 1 could return the type double which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
42
}
43
44
/**
45
* @param Data $data
46
* @param int $segment
47
* @return int<0, max>
48
*/
49
5
public function bytesFromSegment(Data $data, int $segment): int