I've got a error running occ

Nextcloud version: 14
Operating system and version: CentOS 7
Apache or nginx version: nginx/1.13.8
PHP version: 7.0.31

According to the safety check i need to run “occ db:add-missing-indices”, and I would also like to scan the files because litterly every file has the wrong hash.

But then I get:
PHP Parse error:  syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) o
r variable (T_VARIABLE) or ‘{’ or ‘$’ in /path/to/nextcloud/console
.php on line 93

Strange, that looks like a PHP 5.4 error. Are you certain your NGINX server uses PHP 7.0.31 ?