Re: [RFC] Property write visibility

From: Date: Tue, 07 Jul 2020 07:29:11 +0000
Subject: Re: [RFC] Property write visibility
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-110858@lists.php.net to get a copy of this message
> > I think the only thing worth mentioning where references are concerned is > that "$x =& $this->prop" is considered a write of $this->prop, not a read, > so it is subject to the write visibility. But once the reference is > acquired, visibility no longer factors into the behavior. > > Ok, thanks! So instead of : "Attempting to pass a property value outside of allowed writable scope as a reference, results in an error." Instead maybe: "Assigning variable by reference is subject to write visibility, meaning ''$x =& $this->prop'' is considered a write of $this->prop, not a read" ?

« previous php.internals (#110858) next »