Fix PHPStan error in tumblr addon
This commit is contained in:
parent
d488c1907a
commit
cfe27582ee
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ function tumblr_fetch_dashboard(int $uid, int $last_poll)
|
||||||
$dashboard = tumblr_get($uid, 'user/dashboard', $parameters);
|
$dashboard = tumblr_get($uid, 'user/dashboard', $parameters);
|
||||||
if ($dashboard->meta->status > 399) {
|
if ($dashboard->meta->status > 399) {
|
||||||
DI::logger()->notice('Error fetching dashboard', ['meta' => $dashboard->meta, 'response' => $dashboard->response, 'errors' => $dashboard->errors]);
|
DI::logger()->notice('Error fetching dashboard', ['meta' => $dashboard->meta, 'response' => $dashboard->response, 'errors' => $dashboard->errors]);
|
||||||
return [];
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($dashboard->response->posts)) {
|
if (empty($dashboard->response->posts)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue