Fix #1430 : Use strict standards, declare the method static
Merge pull request #601 from romainneutron/fix-1430

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