Fatal error unexpected '.'

This may help someone like me

I ported an application from windows 10 php 5.5 to linux php 7 slim 3
I got this error

atalErrorException Parse Error: syntax error, unexpected ‘.’ related to twig

I solved it simply running composer update

Hope thi help.

cheers