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

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:

The current tooltips showing function signatures tend to look pretty messy when optional parameters are involved.
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: