This commit is contained in:
2025-05-08 20:27:30 +05:00
parent f51de7b2aa
commit 179c7e66e2
2 changed files with 12 additions and 38 deletions

View File

@@ -15,9 +15,9 @@ class FetchRemainingLoanFromBilling
* @param string $passport_id
* @param string $account_number
*
* @return array<string, int|bool|null|string>
* @return mixed
*/
public function handle(string $passport_serie, int|string $passport_id, int|string $account_number): array
public function handle(string $passport_serie, int|string $passport_id, int|string $account_number): mixed
{
if (app()->isLocal()) {
return $this->sampleResponse();
@@ -51,12 +51,11 @@ class FetchRemainingLoanFromBilling
],
]);
/** @var array<string, int|bool|null|string>|bool */
$response = curl_exec($curl);
curl_close($curl);
return is_array($response) ? $response : [];
return $response;
}
/**