From a2e1eb8dd652f235b686bab02c5ce4e9b1e44b76 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 2 Jun 2021 17:05:08 +0300 Subject: [PATCH] fix #101 --- lib/RetailCrm/Methods/V5/Costs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RetailCrm/Methods/V5/Costs.php b/lib/RetailCrm/Methods/V5/Costs.php index d1278dd..9f0f109 100644 --- a/lib/RetailCrm/Methods/V5/Costs.php +++ b/lib/RetailCrm/Methods/V5/Costs.php @@ -201,7 +201,7 @@ trait Costs */ public function costsDeleteById($id) { - if (!empty($id)) { + if (empty($id)) { throw new \InvalidArgumentException( 'Parameter `id` must contains a data' );