New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token when using PHP7’s null coalesce operator #347
Comments
This should probably be fixed in PDepend. |
👍 Ran into this too. |
same problem |
Confirmed for me too. |
Confirmed for me too. Edit: |
Confirmed with PHPMD 2.4.3 |
Still present in today's dev head. |
😞 |
I think problem is with missing TOKEN_PARSE for token_get_all in https://github.com/pdepend/pdepend/blob/master/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerInternal.php#L651
But it's not a fix it's a beginning of the adventure :) |
This issue has been fixed on PDepend. Can a new PHPMD version be released with this fix? |
👍 |
Still awaiting new PDepend release perhaps? |
Has anyone found an interim fix? I have a new PHP7 codebase and want to turn on PHPMD, but I cant until it support the new operators. |
👍 |
same in here any fix for this ? |
Até que enfim! We have a new PDEPEND tag since March! Please, update your composers! 😄 |
$ phpmd ./src xml cleancode --reportfile ./testphp.xml --suffixes php > testphpmd.log My issue is with phpmd not PDEPEND. |
Please, run: |
$ pdepend --version Warning: Module 'mongodb' already loaded in Unknown on line 0 |
I think your installation of PHPMD is a If you use Composer, you simply need to update your |
|
Confirmed. Not sure why I had 2.2.4 (my project is newer than the 2.2.6 release) but I forced an update with |
pdepend fixed thanks @wandersonwhcr , but I got new error 16 |
@azzeddinefaik I'm sorry, but with this error I can't help you. Please, search if another issue has your problem or create a new one. |
$var = $otherVar ?? 'default';
givesUnexpected token: ??
.The text was updated successfully, but these errors were encountered: