Re: [RFC] make Reflection*#setAccessible() no-op

From: Date: Mon, 21 Jun 2021 17:08:50 +0000
Subject: Re: [RFC] make Reflection*#setAccessible() no-op
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-114982@lists.php.net to get a copy of this message
On 21.06.2021 at 17:53, Marco Pivetta wrote: > On Sun, Jun 13, 2021 at 6:44 PM Marco Pivetta <ocramius@gmail.com> wrote: > >> I'm posting here to introduce a new simplification, as well as >> quality-of-life-improving RFC: >> >> >> https://wiki.php.net/rfc/make-reflection-setaccessible-no-op >> >> The RFC is quite minimal, and proposes removing any runtime behavior from >> ReflectionMethod#setAccessible() and >> ReflectionProperty#setAccessible(), making >> ReflectionMethod and >> ReflectionProperty accessible by default. > > Since feedback has been relatively minimal and positive, I will likely > start voting tomorrow, since I don't want trouble with any upcoming 8.1 > deadline (plus I'll otherwise just forget). Given that private constants and static properties already can be accessed right away, I'm in favor of this RFC. -- Christoph M. Becker

« previous php.internals (#114982) next »