<table><tr><td style="">mtijink 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/D6837" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I found another possible fix: removing line 505 (<tt style="background: #ebebeb; font-size: 13px;">classDec = dynamic_cast<ClassDeclaration*>(type->declaration(nullptr));</tt>) also fixes the issue, so that seems to be the root cause.</p>

<p>How should I write this test? The problem only occurs after modification of the file, so I do not know how to test it.</p></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/D6837" rel="noreferrer">https://phabricator.kde.org/D6837</a></div></div><br /><div><strong>To: </strong>mtijink, KDevelop, zhigalin<br /><strong>Cc: </strong>zhigalin, apol, kfunk, kdevelop-devel, KDevelop, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>