1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Trigger InvalidDocblock when @return missing type

This commit is contained in:
Matt Brown 2018-04-25 11:18:05 -04:00
parent 37620ce2e5
commit d09d547718

View File

@ -150,6 +150,10 @@ class CommentChecker
$return_block = trim((string)reset($return_specials));
if (!$return_block) {
throw new DocblockParseException('Missing @return type');
}
try {
$line_parts = self::splitDocLine($return_block);
} catch (DocblockParseException $e) {