This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
41
*/
42
public function getKiloBytes()
43
{
44
return $this->bytes / 1000;
45
}
46
47
/**
48
* @param int $bytes
49
*/
50
public function addBytes($bytes)
51
{
52
if ($bytes < 0) {
53
throw new InvalidArgumentException('The passed bytes amount is below zero: '.$bytes);
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.