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: ARRAY (reserved keyword as a class constant) #290

Closed
Brandon0 opened this Issue Jan 6, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@Brandon0

Brandon0 commented Jan 6, 2017

As of PHP 7.0.0 these keywords are allowed as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name.

# vendor/bin/pdepend --summary-xml=build/pdepend.xml src/path/to/file.php
PDepend 2.3.2

Parsing source files:
.                                                                1

Calculating Cyclomatic Complexity metrics:
                                                                 1

Calculating Node Loc metrics:
                                                                 1

Calculating NPath Complexity metrics:
                                                                 1

Calculating Inheritance metrics:
                                                                 1

Calculating Node Count metrics:
                                                                 1

Calculating Hierarchy metrics:
                                                                 1

Calculating Code Rank metrics:
                                                                 1

Calculating Coupling metrics:
                                                                 1

Calculating Class Level metrics:
                                                                 1

Calculating Cohesion metrics:
                                                                 1

Calculating Halstead metrics:
                                                                 1

Calculating Maintainability Index metrics:
                                                                 1

Generating pdepend log files, this may take a moment.

The following error occurred:
Unexpected token: ARRAY, line: 16, col: 11, file: /var/www/code/src/path/to/file.php.


Time: 0:00:00; Memory: 6.00Mb

Line 16:

    const ARRAY = 'ARRAY';

manuelpichler added a commit that referenced this issue Jan 7, 2017

@manuelpichler manuelpichler self-assigned this Jan 7, 2017

@manuelpichler manuelpichler added the Bug label Jan 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment