1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix #678 - allow docblock types to set constraints

This commit is contained in:
Matthew Brown 2019-03-28 00:16:35 -04:00
parent cf21c3e366
commit 5e287fa83e

View File

@ -881,6 +881,8 @@ class StatementsAnalyzer extends SourceAnalyzer implements StatementsSource
$comment_type = null;
if ($doc_comment) {
$var_comments = [];
try {
$var_comments = CommentAnalyzer::getTypeFromComment(
(string) $doc_comment,