Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Workdiary::get() incorrectly overrides Client::get() #20

Description

@Sarke
PHP Warning with message 'Declaration of 
Upwork\API\Routers\Workdiary::get($company, $username, $date, $params = Array)
should be compatible with 
Upwork\API\Client::get($url, $params = Array)'

in vendor/upwork/php-upwork/src/Upwork/API/Routers/Workdiary.php:81

Suggest renaming the method to getByCompany or getByCompanyAndUsername.

Or alternatively, don't extend Client. The calls are being made to $this->_client and not $this, so I don't see the reason for it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions