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...
22
*/
23
2
public static function create(string $value, string $purpose, DateTime $date): self
24
{
25
2
return new self(
26
2
sprintf(
27
2
'The "%s" token with value "%s" is expired since "%s".',
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.