phpmd: Unexpected token when using PHP7βs null coalesce operator
$var = $otherVar ?? 'default'; gives Unexpected token: ??.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (2 by maintainers)
Commits related to this issue
- Use latest PDepend version, closes #347. — committed to phpmd/phpmd by deleted user 8 years ago
This issue has been fixed on PDepend. Can a new PHPMD version be released with this fix?
π Ran into this too.
Confirmed for me too.
Edit: OS: Win7 PHP: 7.0.3 PHPMD: 2.4.3
pdependv2.2.6 fixes thisAtΓ© que enfim!
We have a new PDEPEND tag since March!
Please, update your composers! π