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...
18
*/
19
public static function placeholderRequired(string $transPattern): self
20
{
21
return new self(sprintf('Translation pattern "%s" must contain %%s placeholder', $transPattern));
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.