JMSTranslationBundle icon indicating copy to clipboard operation
JMSTranslationBundle copied to clipboard

The parser throw an error with binary assignation and stop de process

Open Rui-Git opened this issue 8 years ago • 1 comments

I've run an export app/console translation:extract fr --bundle=AcmeFrontBundle

And have no problem, after that i've run it on another bundle app/console translation:extract fr --bundle=AcmeServiceBundle And have this error

[RuntimeException] Could not parse "/www/project/src/Acme/Bundle/ServiceBundle/Entity/MyEntity.php": Syntax error, unexpected T_SL, expecting ',' or ';' on line 33  

And

[PHPParser_Error] Syntax error, unexpected T_SL, expecting ',' or ';' on line 33

If I check the line 33

const STATUS_DRAFT = 1<<0;

And remember that was an old issue of previous PHP version corrected long ago.

How could I avoid this?

Rui-Git avatar Aug 18 '15 08:08 Rui-Git

I know it was a long time ago you posted this issue. Do you still experiencing this? Or is it fixed in the latest version of the bundle?

Nyholm avatar Aug 04 '16 16:08 Nyholm