On 5 April 2024 15:09:42 CEST, Joel Wurtz <jwu...@jolicode.com> wrote: >Hello everyone, > >Like a lot of libraries, we offer the possibility to configure behaviors >with Attributes. However in some cases it's wrongly configured by the user >and this wrong configuration cannot be detected on the attribute >constructor but afterwards. > >In this case we may want to pinpoint which attribute (in which file and at >which line) cause this bad configuration. Since there was no method to >retrieve those information in the ReflectionAttribute I proposed a PR >https://github.com/php/php-src/pull/13889 to add those informations. > >I do believe this will allow better DX for end user when correctly used,
Would it make sense to not only add this for ReflectionAttribute, but also Function and/or others? Functions have a range of lines associate with them. Could Attributes have that too? cheers Derick