You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar issue to this bug #11 however my error is a return type error (see screenshot)
The deleteArticle method is expecting a return type of stdClass but I actually get an empty string. Following the chain of methods
` public function deleteArticle(string $channelId, string $articleId): stdClass
{
return $this->delete($channelId, '/articles/{article_id}', [
'article_id' => $articleId,
]);
}
Description
Similar issue to this bug #11 however my error is a return type error (see screenshot)
The deleteArticle method is expecting a return type of stdClass but I actually get an empty string. Following the chain of methods
` public function deleteArticle(string $channelId, string $articleId): stdClass
{
return $this->delete($channelId, '/articles/{article_id}', [
'article_id' => $articleId,
]);
}
calls
which instantiates publisherAPI which then calls
/**
*/
public function delete($path, Array $path_args = [], Array $data = []) {
parent::delete($path, $path_args, $data);
$this->setHeaders(
[
'Authorization' => $this->auth()
]
);
$this->unsetHeaders(
[
'Content-Type'
]
);
return $this->request($data);
}`
We haven't changed anything on our end so this is a little strange. Unless the news api has changed their responses.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: