Re: [RFC] isReadable/isWriteable property reflection

From: Date: Wed, 17 Dec 2025 15:26:23 +0000
Subject: Re: [RFC] isReadable/isWriteable property reflection
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129633@lists.php.net to get a copy of this message
On Wed, Nov 5, 2025, at 5:24 PM, Larry Garfield wrote: > In other news, Ilija and I said a year ago that we'd take a swing at > adding isReadable/isWriteable methods to ReflectionProperty. Took a > while, but here we are. A strangely small RFC from us: > > https://wiki.php.net/rfc/isreadable-iswriteable A few updates based on the discussion here: * We now account for static properties. (What a concept.) * The static magic string is gone. * We have decided on an approach for magic methods. The updated RFC text explains it in more detail, but in short, "if __isset(), then use that to determine readable. Otherwise, __get() implies readable. __set() implies writeable." That should handle the use cases Nicolas was interested in. We consider the RFC feature complete at this point. Baring any further substantive discussion, expect a vote in January after the blackout period ends. --Larry Garfield

« previous php.internals (#129633) next »