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

Unexpected token: __TRAIT__ #285

Closed
manuelpichler opened this issue Jan 6, 2017 · 0 comments · Fixed by #287
Closed

Unexpected token: __TRAIT__ #285

manuelpichler opened this issue Jan 6, 2017 · 0 comments · Fixed by #287
Assignees
Labels

Comments

@manuelpichler
Copy link
Contributor

The following valid code:

<?php
class UnexpectedTokenTrait {
    public function foo() {
        throw new \LogicException('Not implemented ' . __TRAIT__);
    }
}

results in a error:

Unexpected token: __TRAIT__, line: 4, col: 56, file: /home/manu/Development/PDepend/trait.php.

This issue war originally filed here: phpmd/phpmd#394

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

Successfully merging a pull request may close this issue.

2 participants