clockify-api
clockify-api copied to clipboard
$projectsIds, $tagsIds and $taskId must be nullable in TimeEntryDtoImpl
If I don't use projects, tags or tasks in Clockify, the TimeEntryDto is not working, it gives must the following error :
JDecool\Clockify\Model\TimeEntryDtoImpl::__construct(): Argument #6 ($tagIds) must be of type array, null given
In order to make it works, I've done the following changes :
public function __construct(
bool $billable,
string $description,
string $id,
bool $isLocked,
$projectId,
$tagIds=[],
$taskId,
TimeIntervalDto $timeInterval,
string $userId,
string $workspaceId
) {
...
}