Hi,

On Thu, Nov 16, 2023 at 17:14 Jakub Zelenka <bu...@php.net> wrote:

> I will personally vote against this if there is no is_resource
> change as I think it's just too big BC break even for 9.0 - it will likely
> require massive update of many code bases.


As someone maintaining a large code-base going back to 5.0.0 and bitten in
the past by the resource thing, I wonder whether it was previously
discussed to have all these converted objects implement a `Resource`
interface and have `is_resource()` check for that.

Both the function and maybe also the interface could then also be marked as
deprecated, but it would allow for a much more painless transition.

Personally, I’m now relying on psalm to detect such issues, so if I had a
vote I would selfishly vote yes anyways, but still: for those without
static analysis, this would IMHO make things much easier.

Philip

Reply via email to