Skip to content

Commit

Permalink
fix: add integer fallback to count
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed May 29, 2024
1 parent c29ab66 commit 34b4821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/AddressBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function count(): int
]
);

return $response->json('response.results.0.data.meta.cntabsolute');
return $response->json('response.results.0.data.meta.cntabsolute', 0);
}

public function recordIds(array|int $recordIds): static
Expand Down

0 comments on commit 34b4821

Please sign in to comment.