Skip to content

On delete file the response is bool instead of defined stdClass #36

@hashdefault

Description

@hashdefault

pCloud\Sdk\File::delete(): Return value must be of type stdClass, bool returned

Method: delete
Class: pCloud\Sdk\File

public function delete(int $fileId): stdClass
{
	$response = $this->request->get("deletefile", array("fileid" => $fileId));

	return property_exists($response, 'metadata') ? $response->metadata->isdeleted : $response;
}

Metadata

Metadata

Assignees

No one assigned

    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