Problem/Motivation
The docblocks for locale_translation_batch_fetch_download() and locale_translation_batch_fetch_import() say the $project argument is an object but it seems this argument is a string.
Steps to reproduce
Call locale_translation_batch_fetch_download() with an object:
locale_translation_batch_fetch_download(new stdClass(), 'en', $context);
It fails with this error:
TypeError Cannot access offset of type stdClass on array.
Proposed resolution
Document the correct type in the docblock.