> > > I would expect attributes to apply only to the properties on my side. > > Parameter annotations could be interesting for dependency injection. > Symfony currently has some DI magic through parameter names among > other things. It might be nice to control these through annotations > instead. This would be impossible or involve a lot of hackery and > assumptions if the annotations aren't available on the parameters. > Alternatively we might make this information available through > reflection (like ReflectionParameter::getGeneratedProperty()) so you > can look for the annotation there. >
Sure, this could be considered. But this doesn't contradict what I wrote: if one uses constructor promotion, the then attributes should only go to the properties to me. If one wants to add attributes to parameters, then one would need to opt-out from constructor promotion. Nicolas