On Fri, Jun 8, 2018 at 9:29 AM, Ryan Jentzsch <ryan.jentz...@gmail.com> wrote:
> Thanks Rowan for the detailed explanation. > I thought that leveraging `__get` / `__set` internally would have addressed > many of the type checking issues that you mentioned. > I've used __get/__set in userland to enforce property types and hoped that > an internal C based solution would something that is reasonable to code and > implement. > > Also, can anyone in internals respond to this inquiry? > https://github.com/php/php-src/pull/1797#issuecomment-394434391 Added type checking to __get and __set is one of the primary reasons for a downvote of the typed properties RFC ( https://wiki.php.net/rfc/typed-properties) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/