Together with my new co-author @timwolla we are restarting the discussion on the #[\Deprecated] attribute #PHP #RFC.
See https://wiki.php.net/rfc/deprecated_attribute and thread on internals ML.
Together with my new co-author @timwolla we are restarting the discussion on the #[\Deprecated] attribute #PHP #RFC.
See https://wiki.php.net/rfc/deprecated_attribute and thread on internals ML.
Personally I prefer such questions being asked on the mailing list, so that all the relevant information can be collected in a centralized location for everyone to see.
As for the question itself: It would probably be *possible*, but semantics would likely be pretty questionable: What should ReflectionFunctionAbstract::isDeprecated() return? How should static analysis tools interpret the attribute? Would they need to execute arbitrary complex code?