Closed
Description
When trying to convert a static method constructor
, the parser throws an unintelligible error, Parse Error : syntax error, unexpected 'function Object() { [native code] }', expecting T_STRING on line n
, a more specific error would be nice for JS newbies.
Example code that triggers the error:
<?php class a { public static function constructor() {} }