asmblah / uniter

🎉 PHP in the browser and Node.js => Docs: https://phptojs.com/
https://asmblah.github.io/uniter/
Other
446 stars 42 forks source link

Class::const construction is not supported #10

Closed unlight closed 9 years ago

unlight commented 10 years ago

http://asmblah.github.io/uniter/demo/interactive.html

<?php
class A
{
    const VERSION = '4.6.0';
} 

Result: PHP Parse error: syntax error, unexpected 'c' in (program) on line 4

asmblah commented 10 years ago

Thank you for raising this issue @unlight, I've now added support for PHP class constants in master (https://github.com/asmblah/uniter/commit/e95a41a22f49086417a04bd6a522d6c877301f83.)

Cheers!