Skip to content

Commit

Permalink
fix: TaxIdentificationNumberNotFoundException n/a anymore
Browse files Browse the repository at this point in the history
I believe TaxIdentificationNumberNotFoundException exception it's not really needed anymore in HttpTransporter because it conflicts with Anaf\Resources\Info::create()
  • Loading branch information
robert-stanciu committed Apr 20, 2024
1 parent 99fb2b4 commit d63b2c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Transporters/HttpTransporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public function requestObject(Payload $payload): array

}

if (! array_key_exists('notFound', $response) && ! array_key_exists('Errors', $response)) {
return $response;
}
// if (! array_key_exists('notFound', $response) && ! array_key_exists('Errors', $response)) {
// return $response;
// }

if ($response['notFound'] !== []) {
throw new TaxIdentificationNumberNotFoundException();
}
// if ($response['notFound'] !== []) {
// throw new TaxIdentificationNumberNotFoundException();
// }

return $response;
}
Expand Down

0 comments on commit d63b2c2

Please sign in to comment.