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:
parent
37620ce2e5
commit
d09d547718
@ -150,6 +150,10 @@ class CommentChecker
|
|||||||
|
|
||||||
$return_block = trim((string)reset($return_specials));
|
$return_block = trim((string)reset($return_specials));
|
||||||
|
|
||||||
|
if (!$return_block) {
|
||||||
|
throw new DocblockParseException('Missing @return type');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$line_parts = self::splitDocLine($return_block);
|
$line_parts = self::splitDocLine($return_block);
|
||||||
} catch (DocblockParseException $e) {
|
} catch (DocblockParseException $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user