note 75322 deleted from function.empty by didou
| From: | didou@php.net | Date: | Sun, 18 May 2008 00:55:21 +0000 |
| Subject: | note 75322 deleted from function.empty by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139474@lists.php.net to get a copy of this message | ||
Note Submitter: JAYPEEsorenATgeeMail
----
RE: Arian's comments on
empty( $someClass->someMethod() )
causing Fatal error: Can't use method return value in write context in ...
As retardedly simple as it is, just do this:
function emptyReturn( $var )
{
return empty( $var );
}
and substitute emptyReturn() anywhere you would use empty() on a function call.
I'm telling myself there's some good reason it is this way, but I'm not believing me.