WIP
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user