When trying to do this in PHP 5.2.9:
$foo = (clone $template)->bar();
PHP gives me a syntax error:
Parser error "';' expected after expression (Found token: ->)"
Am I doing something wrong? or is there simply no way to clone an object inline, such that I would have to split my statement into two lines?