Yii2 init error on PHP 7.0

Hi all,

I’ve a problem when i try to switch my project from dev enviroment to prod, the project is a git repository I push to my server, now I need to switch to production and I try to run


php init

on server but all time I receive the same error:


Parse error: syntax error, unexpected T_FUNCTION in /my/root/path/init on line 70



where /my/root/path/ is the base path where I push code.

Someone have any idea about this error?

What’s your yii version?