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:
parent
cf21c3e366
commit
5e287fa83e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user