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...
19
*/
20
public function getNumber()
21
{
22
return $this->begin->format('W');
23
}
24
25
/**
26
* Returns the period as a DatePeriod.
27
*
28
* @return \DatePeriod
29
*/
30
public function getDatePeriod()
31
{
32
return new \DatePeriod($this->begin, new \DateInterval('P1D'), $this->end);
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.