-bash-4.2$ wp db check
PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARI
ABLE) or '{' or '$' in /var/www/u916199/data/www/site/stage/vendor/roots/wp-config/src/Config.php on line 37
I’m having this same issue. It happens with all wp-cli commands. The same site works fine when running locally (with Laravel Homestead) and on a different server, so I assume it has something to do with the server. This definitely isn’t the first issue like that I’ve run into on this project.
Current server config is through Plesk running PHP 7.3.15 with nginx.