Skip to content

Argument description attribute would be nice #18153

@divinity76

Description

@divinity76

Description

I am now in a situation where I would want argument description available in reflection.
One way to do that would be an argument description attribute.
Something like

function processOrder(
    #[ArgumentDescription("The unique identifier for the order.", example: "ORD12345")]
    string $orderId,
    #[ArgumentDescription("The total amount for the order in USD.", example: 99.99)]
    float $amount
) {
(...)
}

Would be nice.
Definitely don't have leftover time/energy to pursue an RFC tho.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions