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 nonexistent(string $name): self
20
{
21
return new self(sprintf('Nonexistent enum with name "%s" in registry', $name));
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.