Exception: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting end of file