WP-CLI `user create` failing on woocommerce

Question

I am trying to use the wp user create <user-login> <user-email> --role=<role> and the following error:

PHP Parse error: syntax error, unexpected ':', expecting '{' in /home/<user>/public_html/wp-content/plugins/woocommerce/woocommerce.php on line 56…

Ln56: function wc_get_container() : PsrContainerContainerInterface {

Ideas?

0
Greg 4 months 0 Answers 10 views 0

Leave an answer