You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Intelephense appears to not support dynamically accessing enum variants via the syntax MyEnum::{$myVar} even when PHP version is set to 8.3.
To Reproduce
Set "intelephense.environment.phpVersion": "8.3.0" or similar
Disable PHP Language Features
Test snippet:
<?php
enum Test: string {
case A = 'a';
case B = 'b';
}
$a = 'A';
echo Test::{$a};
Squiggle appears under final semicolon, with Unexpected ';'. Expected '('.intelephense(P1001)
Expected behavior
Treats as valid syntax for PHP 8.3 with no squiggles
Platform and version
Windows 10 22H2, WSL2, VS Code v1.88.1, Intelephense v1.10.4.
The text was updated successfully, but these errors were encountered:
Describe the bug
Intelephense appears to not support dynamically accessing enum variants via the syntax
MyEnum::{$myVar}
even when PHP version is set to 8.3.To Reproduce
Set
"intelephense.environment.phpVersion": "8.3.0"
or similarDisable PHP Language Features
Test snippet:
Squiggle appears under final semicolon, with
Unexpected ';'. Expected '('.intelephense(P1001)
Expected behavior
Treats as valid syntax for PHP 8.3 with no squiggles
Platform and version
Windows 10 22H2, WSL2, VS Code v1.88.1, Intelephense v1.10.4.
The text was updated successfully, but these errors were encountered: