Check that any optional plugins/themes you are using are *definitely* compatible with Moodle 3.11
I will admit to having 1 atto styles plugin that may not be. If I get a chance, I'll test this. But resetting to the lower PHP version did resolve the error. That IS a good point.