vscode-phpunit
vscode-phpunit copied to clipboard
CodeLens does not work if method parameters contain PHP8 features
Repro
Create a test method that has argument type hint in the form of array|(ArrayAccess&Countable&Traversable) $parentVisibleToRoles,
Outcome
There is no "Run test" link over the method name.
Expected outcome
A "Run test" link
Logs / output / settings
It appears that the php-parser library does not support PHP 8 features.
| Environment | Values |
|---|---|
| Extension version | 4.16.1 |
| Operating system | Windows 11 23H2 |