Skip to content
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

Null coalescing operator error using php 7 #374

Closed
ghost opened this issue Jun 14, 2016 · 1 comment
Closed

Null coalescing operator error using php 7 #374

ghost opened this issue Jun 14, 2016 · 1 comment
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Jun 14, 2016

According to the new feature in php 7

The null coalescing operator (??) has been added as syntactic sugar for the common case of needing to use a ternary in conjunction with isset(). It returns its first operand if it exists and is not NULL; otherwise it returns its second operand.

PHPMD provides an error:
Unexpected token: ??

Could it be fixed?

@ravage84 ravage84 added the Bug label Jun 14, 2016
@ravage84 ravage84 added this to the 2.4.4 milestone Jun 14, 2016
@ravage84
Copy link
Member

Thanks for reporting.
Duplicate of #347

@ravage84 ravage84 modified the milestones: 2.4.4, 2.5.1 Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant