[TASK] PHP7 compliance - part 1