Use strict standards for task::getName method