Can't use method return value in write context (PHP5.3)