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.