syntax error, unexpected ';' in ./cache/production_201909250854/doctrine/attributes/Site.php

 

Thank You in advance,

How to solve an error, this is displaying when I am executing http://localhost/shopware_demo/

Parse error : syntax error, unexpected ‘;’, expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in  /opt/lampp/htdocs/shopware_demo/var/cache/production_201909250854/doctrine/attributes/Site.php  on line  167

What php version do you use? This error is mainly caused by a wrong php-version.

@Moritz Naczenski schrieb:

What php version do you use? This error is mainly caused by a wrong php-version.

 

 

Thank You for your valuable reply, I am using PHP 7.1.13.

@Moritz Naczenski schrieb:

What php version do you use? This error is mainly caused by a wrong php-version.

 

 

 

 

I have also updated PHP version from  7.1.13. to 7.3.1 , but still the same issue