php-zephir-parser icon indicating copy to clipboard operation
php-zephir-parser copied to clipboard

Object type declaration, syntax error

Open flyingangel opened this issue 7 years ago • 1 comments

The parser doesn't recognize type object declaration. Maybe it's not a native C type so I just want to point it out. But method argument hint type works as intended.

object obj = new stdClass; //---> throw error syntax

A workaround is to use var obj

flyingangel avatar Apr 02 '18 21:04 flyingangel

@flyingangel Thank you for pointing this out. Actually this was in my personal TODO list.

sergeyklay avatar Apr 02 '18 22:04 sergeyklay