From 3165b0778b2ccc14362d722422ca46325764c1e7 Mon Sep 17 00:00:00 2001 From: Andrei Ciungulete Date: Sun, 21 Jan 2024 01:13:37 +0200 Subject: [PATCH] fix --- src/Resources/Info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/Info.php b/src/Resources/Info.php index a0091cd..37a8b9a 100644 --- a/src/Resources/Info.php +++ b/src/Resources/Info.php @@ -40,7 +40,7 @@ public function create(array $parameters): CreateResponse|CreateResponses */ $response = $this->transporter->requestObject($payload); - if (count($response['found']) === 0) { + if ($response['found'] === []) { throw new TaxIdentificationNumberNotFoundException(); }