<table><tr><td style="">hmitonneau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26254">View Revision</a></tr></table><br /><div><div><p>I have compiled from scratch with kdesrc-build (with <tt style="background: #ebebeb; font-size: 13px;">cmake-options -DCMAKE_BUILD_TYPE=RelWithDebInfo</tt>). The duchain test still doesn't pass.<br />
After some debug, it seems that <tt style="background: #ebebeb; font-size: 13px;">m_gotTypeFromTypeHint</tt> is not always initialized correctly.<br />
The following patch fix the problem for me:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">diff --git a/duchain/builders/typebuilder.cpp b/duchain/builders/typebuilder.cpp</span>
<span style="color: #000080">index 18e6bcb..c7f147e 100644</span>
<span style="color: #a00000">--- a/duchain/builders/typebuilder.cpp</span>
<span style="color: #00a000">+++ b/duchain/builders/typebuilder.cpp</span>
<span style="color: #800080">@@ -347,6 +347,7 @@ void TypeBuilder::visitClassStatement(ClassStatementAst *node)</span>
             m_gotTypeFromDocComment = false;
         }
     } else {
<span style="color: #00a000">+        m_gotTypeFromTypeHint = false;</span>
         //member-variable
         parseDocComment(node, QStringLiteral("var"));
         TypeBuilderBase::visitClassStatement(node);</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R52 KDevelop: PHP Support</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26254">https://phabricator.kde.org/D26254</a></div></div><br /><div><strong>To: </strong>pprkut<br /><strong>Cc: </strong>hmitonneau, kdevelop-devel, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>