Openemr 500 error after upgrading docker

I updated my docker this afternoon, by running all of the pulls

docker pull openemr/openemr:flex
docker pull openemr/openemr:flex-3.17
docker pull openemr/openemr:flex-3.18
docker pull openemr/openemr:flex-3.20
docker pull openemr/openemr:flex-3.21
docker pull mariadb:11.4
docker pull phpmyadmin/phpmyadmin
docker pull couchdb
docker pull openemr/dev-ldap:easy

when i went to restart openemr i am getting the following 500 error message
Error code: 500 Internal Server Error

and the php logs show

PHP Parse error: syntax error, unexpected token “:” in /var/www/localhost/htdocs/openemr/vendor/twig/twig/src/Environment.php(361) : eval()'d code on line 98

i’m not sure what to do - do i need to update the twig package in some way?

my composer file contains “twig/twig”: “3.20.0”,

thanks for any help

SOLVED: after trying various things i did a docker-compose down -v, and then restarted with docker-compose up. This has cured the problem and i can log in again. just need to restore some data…