Added type-hinting to the $file parameter of the addFile() method.

This bug was detected by SensioLabs Insight (Rule # 32-061)