ParseError thrown

syntax error, unexpected 'new' (T_NEW)