PHP 8.1 is more strict on the parameter type. Functions such as trim(), strlen(), str_replace(), etc show notice when null is passed as an argument
course_format\base:show_editor now by default uses 'moodle/course:manageactivities', but also accepts other capabilities as param