Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$projectsIds, $tagsIds and $taskId must be nullable in TimeEntryDtoImpl #10

Open
eaglerush opened this issue Mar 1, 2022 · 0 comments

Comments

@eaglerush
Copy link

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
    ) {
        ...
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant