[TASK] Fix various PHP8 issues