Re: [RFC] [Vote] #[\Deprecated] attribute

From: Date: Mon, 03 Jun 2024 13:15:10 +0000
Subject: Re: [RFC] [Vote] #[\Deprecated] attribute
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Wed, May 22, 2024 at 2:24 AM Benjamin Außenhofer <[email protected]>
wrote:

> The vote for the RFC #[\Deprecated] attribute is now open:
>
> https://wiki.php.net/rfc/deprecated_attribute
>
> Voting will close on Wednesday 5th June, 08:00 GMT.
>


I have voted no for a few reasons:

- Ideally, I'd like to be able to mark _anything_ as deprecated. In
particular, not being able to mark a _class/interface/enum/etc_ as
deprecated makes this far less useful.

- The "since" parameter is basically worthless to me. It's very easy to
find out the last version that wasn't deprecated. What would be far more
useful to a consumer is an argument indicating when something will be
removed (e.g. $toRemoveInVersion, $versionForRemoval, etc.). This helps me
as a user plan for the future.

-- 
Matthew Weier O'Phinney
[email protected]
https://mwop.net/
he/him


Thread (21 messages)

« previous php.internals (#123489) next »