[RFC] Pass Scope to Magic Accessors

From: Date: Thu, 19 Jan 2023 16:23:38 +0000
Subject: [RFC] Pass Scope to Magic Accessors
Groups: php.internals 
Request: Send a blank email to internals+get-119350@lists.php.net to get a copy of this message
Hi internals, Ilija and I would like to start a discussion about the following RFC: https://wiki.php.net/rfc/pass_scope_to_magic_accessors When using magic methods to access actual properties, respecting their declared visibility is often desired. Yet, accessing the calling scope to emulate the visibility restrictions is unreasonably difficult at the moment. This RFC proposes to pass the calling scope to magic accessors to make it trivial to get it. Kind regards, Nicolas

« previous php.internals (#119350) next »