<table><tr><td style="">mtijink created this revision.<br />mtijink added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.
</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/D6670" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Newer PHP versions allow almost any expression in the definition of a constant, as long as it is actually constant. This is hard to test in the parser (and impossibly in the grammar definition) though, so this diff just allows any expression.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>I edited some tests to make sure the new behaviour is allowed.</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/D6670" rel="noreferrer">https://phabricator.kde.org/D6670</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>duchain/builders/declarationbuilder.cpp<br />
duchain/tests/duchain.cpp<br />
parser/php.g</div></div></div><br /><div><strong>To: </strong>mtijink, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, KDevelop, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>