8 – PHP Error occuring when updating, clearing cache or install/uninstall modules?

I am getting this below error when doing the actions of clearing cache, or install/uninstall module, running update.php.

InvalidArgumentException: Routing requirement for "_user_is_logged_in" must be a string. in SymfonyComponentRoutingRoute->sanitizeRequirement()

Can you please help on this?