The expression return $up = unpack('N',...rintf('%u', $up) : null could return the type string which is incompatible with the type-hinted return integer|null. Consider adding an additional type-check to rule them out.
Loading history...
31
}
32
33
/**
34
* Read and unpack long (8 bytes) from buffer
35
* @param Buffer $buffer
36
* @return string
37
*/
38
public static function long(Buffer $buffer) : ?string