Re: ArrayAccess::offsetGet not returning a ref

From: Date: Fri, 06 Aug 2010 17:41:26 +0000
Subject: Re: ArrayAccess::offsetGet not returning a ref
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-49219@lists.php.net to get a copy of this message
Hi!
In my opinion, it would make more sense, as was already suggested before, to require the return to be passed by reference only if the prototype specifies it should be passed by reference. This could be argued to be a form of return contravariance.
Yes, this makes sense. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#49219) next »