Closed bmewburn closed 3 months ago
To clarify - PHP version is set to PHP 8.1 in the intelephense settings and the code does work with the named argument in practice. vscode version: 1.86.1
Thank you.
Although unknown named argument was fixed, hovering over "files" still says "@var unset $files" and also the type is assumed for the closure from the default value @var \Closure(array $files, string $css_dir = 'scss'): void $loader
, the css_dir argument does not define "string" as type, it defines no type, so it should be "mixed", only the default value is string.
Note that in this case "css_dir" doesn't yield any intelephense error (only this is displayed when hover on:
@var unset $css_dir
)Originally posted by @realjjaveweb in https://github.com/bmewburn/vscode-intelephense/issues/2154#issuecomment-1951413629