Re: "Cannot use $this as lexical variable" message still in PHP 5.4

From: Date: Sat, 07 Jan 2012 09:40:16 +0000
Subject: Re: "Cannot use $this as lexical variable" message still in PHP 5.4
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-57264@lists.php.net to get a copy of this message
Am 07.01.2012 10:34, schrieb Stas Malyshev: > Why you need to add $this there? $this should be available automatically > IIRC unless you make the closure static. That is not the point I wanted to make. Explicitly listing $this in use() should not trigger a compiler error, IMHO. I just wanted to make sure that it was not an oversight to not remove the error message. -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/

« previous php.internals (#57264) next »