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

Error parsing typed class constants with php 8.3 #530

Open
eurosat7 opened this issue Mar 8, 2024 · 0 comments
Open

Error parsing typed class constants with php 8.3 #530

eurosat7 opened this issue Mar 8, 2024 · 0 comments

Comments

@eurosat7
Copy link

eurosat7 commented Mar 8, 2024

Ran phpDocumentor as phpdoc.phar with version v3.4.3 on a php 8.3 code base.

fails:

class Something
{
    private const array REPLACEMENT_MAP = [ 'a' => 1 ];
}

works:

class Something
{
    private const REPLACEMENT_MAP = [ 'a' => 1 ];
}

output:

[alert]   Unable to parse file "Something.php", an error was detected: Syntax error, unexpected T_STRING, expecting '=' on line 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