Does PHP allow to call methods off of a new object like this:
new CEntry( new Control() )->actuate();
I can pass a new object in as a parameter, as in new Control()
. However, it does not seem to like the actuate() call.
I'm getting error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/foo/public_html/develop/foos/source/class.CEntry.php on line 4