Could you please specify that the parameter is a string? Like:
@param string $projectId ....

Same applies for the $taskToMove and $taskReference

Thank you for your contribution.