Re: Initial discussion - more deprecation options

From: Date: Wed, 07 May 2025 20:07:44 +0000
Subject: Re: Initial discussion - more deprecation options
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 07/05/2025 22:02, Tim Düsterhus wrote:
> Hi
> 
> Am 2025-05-07 21:43, schrieb Niels Dossche:
>> Definitely NAK on deprecating properties, which has the potential of adding lots of
>> overhead.
> 
> FWIW: Deprecating properties is already possibly by means of deprecating a property hook. I
> guess this is an acceptable workaround to not require a dedicated support + associated complexity.
> 

Sure, since that goes via method logic, and hooks should be rare (by design), I don't have a
problem with the fact that's possible.
It's a reasonable workaround that you can already use today indeed.

Kind regards
Niels


Thread (7 messages)

« previous php.internals (#127312) next »