\ReflectionParameter is exactly what you need here, but depending directly on reflection seems a bit off to me. It's very powerful and can be abused. Next to that, the documentation on php.net is minimal. Is perhaps an idea to wrap something around it like with the ParamConverterInterface? Might be a bit easier to unit-test that as well.