Closed Korkman closed 6 months ago
In the interest of keeping the number of issues manageable I'm closing this as I can't see this happening at this stage. It adds a lot of complexity and following docblock conventions there is already a description part of the tag that can be used. The description portion also supports markdown which enables a better experience IMO.
/**
* @param array{
* host:string,
* port?:string|int
* } $config
* This is a configuration array
* * host - hostname, mandatory
* * port - port to connect to, defaults to 8080
*/
Problem with existing feature Array shapes work (great feature!):
Array shapes with comments don't:
As standardized by Psalm.
Would be so great to see support for those comments, because right now it's either descriptive or type hinting support for me ...