Skip to content

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

@eaglerush

Description

@eaglerush

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
    ) {
        ...
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions