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

Failure using static class attribute as class name #405

Open
danog opened this issue Mar 9, 2020 · 0 comments
Open

Failure using static class attribute as class name #405

danog opened this issue Mar 9, 2020 · 0 comments
Labels

Comments

@danog
Copy link

danog commented Mar 9, 2020

Code:

<?php

class a { public static $fun = 'a'; }


$a = new a::$fun();

Result:

[daniil@daniil-arch jav]$ jppm start
-> linux
-> app:run 
-> install 

Fatal error: Uncaught ParseError: Syntax error, unexpected ')' in res://4.php on line 6, position 17
Stack Trace:
#0 {main}
  thrown in res://4.php on line 6
@dim-s dim-s added the bug label Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants