xxxxxxxxxx
It looks like you are using Symfony 6.0 (which requires PHP 8.0+) with an older PHP version.
You should downgrade to Symfony 5.4 or upgrade PHP on your server.
The return static type was added in Symfony 6.0, and is not in the previous version.