aaemnnosttv/wp-cli-login-command

syntax error, unexpected 'class'

Closed this issue · 5 comments

Hello~

When I run 'wp login xxx', and It said syntax error, unexpected 'class' of aaemnnosttv/wp-cli-login-command/command.php on line 11. My wp cli version is latest. Did I do something wrong?

Hi there, it sounds like an issue with the autoloader.

How did you install the package?

Yes that looks correct.

Are you sure you are executing the wp login xxx command with PHP version 5.5 or higher? The error you are citing looks like a pre-5.5 error. I see you are installing the command with PHP 7.2, but what do you see when you run wp --info without specifying the full path to the php binary?

Glad we were able to figure it out 😄 Cheers!