Re: [RFC] Deprecate dynamic properties

From: Date: Wed, 25 Aug 2021 14:49:32 +0000
Subject: Re: [RFC] Deprecate dynamic properties
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-115818@lists.php.net to get a copy of this message
On 25/08/2021 15:00, Nikita Popov wrote:
I'm not sure it will have a big impact for this use-case though, because using the new name would require polyfilling it, so I'd expect people would stick to the old name in the foreseeable future...
Not necessarily - it depends what versions you need to support, and what your migration strategy is. Since it's just a deprecation notice initially, you could support 8.1 and 8.2 on the same code base with no changes at all - that's what deprecation notices are for, to give a lead time before changes are mandatory. Once the code base no longer needed to support 8.1, "extends DynamicObject" could be added. For many code bases, that will be long before the feature is actually removed - for a private project, maybe as soon as it's on 8.2 in production. Regards, -- Rowan Tommins [IMSoP]

« previous php.internals (#115818) next »