Vscode-intelephense: Duplicate symbol declaration 'className'.intelephense(10002)

Created on 6 Mar 2019  路  2Comments  路  Source: bmewburn/vscode-intelephense

<?php

namespace a {
    class className
    { }
}


namespace b {
    class className
    { }
}

It will cause the title described warning.
image

bug resolved in 1.0.9

Most helpful comment

Same issue

if(true) { define('SOME_CONST','ONLINE'); } else { define('SOME_CONST', 'OFFLINE'); }

Duplicate symbol declaration 'SOME_CONST'.intelephense(10002)

image

All 2 comments

Same thing with constants.

I know this is superfluous/redundant but having more information never hurt anyone.

:)


namespace a {
    const constantName = 1;
}

namespace b {
    const constantName = 2;
}

image

Same issue

if(true) { define('SOME_CONST','ONLINE'); } else { define('SOME_CONST', 'OFFLINE'); }

Duplicate symbol declaration 'SOME_CONST'.intelephense(10002)

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ottopic picture ottopic  路  3Comments

vanasis picture vanasis  路  4Comments

swashata picture swashata  路  3Comments

zlianon picture zlianon  路  4Comments

mushmelty picture mushmelty  路  4Comments