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

Runtime ::class const doesn't work properly #2386

Closed
jorgsowa opened this issue Jul 30, 2024 · 1 comment
Closed

Runtime ::class const doesn't work properly #2386

jorgsowa opened this issue Jul 30, 2024 · 1 comment

Comments

@jorgsowa
Copy link

<?php

$class[0]::class;

Result:

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

  1 | <?php
  2 |
> 3 | $class[0]::class;
    |           ^

Sandbox: https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswJABaGNwWaABHQXhoANdlfz05BRBiEQgYErYytgqDAF8WKAp4GHQUNHgsSVA2bBgWkXbqzDBBMbwQAB4AfmMwAB1MDYASGNkR7ABtBgBdPDxd-YBuEFagA

@jorgsowa
Copy link
Author

Reported upstream: glayzzle/php-parser#1135

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