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 Parse error since 2.4.0 version with PHP5.6 #360

Closed
Angel94 opened this issue Jul 9, 2018 · 2 comments
Closed

PHP Parse error since 2.4.0 version with PHP5.6 #360

Angel94 opened this issue Jul 9, 2018 · 2 comments
Labels

Comments

@Angel94
Copy link

Angel94 commented Jul 9, 2018

Hi,

I'm having a PHP parse error with lines below since the update to 2.4 version of phpmetrics.
I run it under php 5.6 which is allowed from composer.json but it seems there is a syntax error. The php7 typehint can't be parsed correctly.

public function traverseNode(Node $node): Node

The error :

PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in vendor/phpmetrics/phpmetrics/src/Hal/Component/Ast/NodeTraverser.php on line 110

Thx,

Marc

@UFOMelkor UFOMelkor added the bug label Jul 9, 2018
UFOMelkor added a commit to UFOMelkor/PhpMetrics that referenced this issue Jul 9, 2018
UFOMelkor added a commit to UFOMelkor/PhpMetrics that referenced this issue Jul 9, 2018
UFOMelkor added a commit to UFOMelkor/PhpMetrics that referenced this issue Jul 9, 2018
@UFOMelkor
Copy link
Member

Hi Marc,

thank you for reporting the error. I fixed it and will release a new version tomorrow.

@Angel94
Copy link
Author

Angel94 commented Jul 10, 2018

Thx for your reactivity.

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

No branches or pull requests

2 participants