From b4eccc73af134e9a921907dce28c90a677ba4d3d Mon Sep 17 00:00:00 2001 From: Pavel Date: Mon, 25 Nov 2019 11:51:33 +0300 Subject: [PATCH] Fixes #73 --- lib/RetailCrm/Methods/V5/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RetailCrm/Methods/V5/Files.php b/lib/RetailCrm/Methods/V5/Files.php index 7e589c5..b891f74 100644 --- a/lib/RetailCrm/Methods/V5/Files.php +++ b/lib/RetailCrm/Methods/V5/Files.php @@ -169,7 +169,7 @@ trait Files */ public function fileEdit(array $file) { - if (!empty($file)) { + if (empty($file)) { throw new \InvalidArgumentException( 'Parameter `file` must contains a data' );