Skip to content

Improve how function signatures are displayed in tooltips #159

@ZebulanStanphill

Description

@ZebulanStanphill

The current tooltips showing function signatures tend to look pretty messy when optional parameters are involved.

image

I think the square bracket syntax is too noisy, is unnecessary for params with default arguments, and doesn't even make much sense anymore since in PHP 8 you can include optional params like these in any order you please.

Maybe just have a little badge next to the optional params (without a default param) saying optional?

Additionally, I think it would help if functions with lots of parameters had each param on a separate line.

I think the Intelephense extension handles this fairly well:

image

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions