bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

Incorrect hover on anon fn named args #2841

Closed bmewburn closed 1 week ago

bmewburn commented 3 months ago

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.

Originally posted by @realjjaveweb in https://github.com/bmewburn/vscode-intelephense/issues/2801#issuecomment-2035518153