[3.8] Use strict standards for task::getName method