Skip to content

Commit

Permalink
refactor: Fix error with bracket placement
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 29, 2024
1 parent 5ccc284 commit 6f9f574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function paginatedAlbumRequest(array &$buffer, string $albumId, int $star
'start' => $start,
];
$responseBody = $this->cantoApiRequest('/album/' . $albumId, $params);
if (isset($responseBody['status']) && $responseBody['status' === 'error']) {
if (isset($responseBody['status']) && $responseBody['status'] === 'error') {
return false;
}
$buffer = array_merge($buffer, $responseBody['results']);

Check failure on line 169 in src/services/Api.php

View workflow job for this annotation

GitHub Actions / PHPStan

Parameter #2 ...$arrays of function array_merge expects array, string given.
Expand Down

0 comments on commit 6f9f574

Please sign in to comment.