Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Constant visibility is not supported #31

Closed
hkdobrev opened this issue Apr 27, 2018 · 1 comment
Closed

Constant visibility is not supported #31

hkdobrev opened this issue Apr 27, 2018 · 1 comment

Comments

@hkdobrev
Copy link

Code like this:

class Foo
{
	public const BAR = 1;
}

produces the following error:

[PhpParser\Error]
  Syntax error, unexpected T_CONST, expecting T_FUNCTION on line 16

This is valid code in PHP 7.1.

@dereuromark
Copy link

Might be resolved with #29 ?

@dunglas dunglas closed this as completed Dec 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants