I am using Symfony 5.0 and EasyAdmin 3.1.
No idea why EasyAdmin tries to call an undefined function... Does anyone have a fix for this?
Changing the composer.json file fixed it.
"symfony/string": "5.0.*"
had to be changed to "symfony/string": "5.1.*"
then calling
composer update "symfony/*"
in the Terminal to update.