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

php 5.6 constant syntax not supported #209

Closed
tystr opened this issue May 27, 2015 · 2 comments
Closed

php 5.6 constant syntax not supported #209

tystr opened this issue May 27, 2015 · 2 comments

Comments

@tystr
Copy link

tystr commented May 27, 2015

I have a constant defined like this:

    const MONTHS = [
        'January'   => 'January',
        'February'  => 'February',
        // ...
    ];

pdepend errors with the following message:
Unexpected token: =>

In another file I have a constant defined like this:

    const SCALAR_TYPES = ['string', 'int', 'float', 'boolean'];

pdepend errors with the following message:
Unexpected token: 'int'

@internalsystemerror
Copy link

Duplicate of #192

sustmi added a commit to sustmi/pdepend that referenced this issue Sep 20, 2015
@manuelpichler
Copy link
Contributor

Duplicate with #192

@ravage84 ravage84 added this to the 2.x (unspecific) milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants