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

SyntaxError: Parse Error : syntax error, unexpected '::' (T_DOUBLE_COLON) #2192

Open
AnmSaiful opened this issue Jun 9, 2023 · 0 comments
Open

Comments

@AnmSaiful
Copy link

A nested static reference is not working.

@prettier/plugin-php v0.19.5

Playground link

Input:

<?php

$app = static::APP::getInstance();

Output:

Parse Error : syntax error, unexpected '::' (T_DOUBLE_COLON) on line 3

  1 | <?php
  2 |
> 3 | $app = static::APP::getInstance();
    |                  ^
  4 |
  5 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant