Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3
| From: | Mike Schinkel | Date: | Thu, 25 Apr 2024 21:01:35 +0000 |
| Subject: | Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123211@lists.php.net to get a copy of this message | ||
> On Apr 25, 2024, at 11:28 AM, Rowan Tommins [IMSoP] <imsop.php@rwec.co.uk> wrote:
> If the project has no clear deprecation policy, the information is useless anyway.
Not true.
Having standardized notation for deprecation would allow tooling to analyze a codebase and determine
if it contains deprecated code that needs to be remediated without having to run the code with full
coverage.
Actually,
since: doesn't go far enough because it doesn't indicate if the
deprecation throws warnings, throws errors, or just no longer works. The latter two would be
especially helpful when deciding if code modifications are necessary before upgrading to a new
version of PHP.
-Mike