Skip to content

Commit

Permalink
Merge pull request #1 from njxqlus/master
Browse files Browse the repository at this point in the history
Add new vat. Remove JSON_FORCE_OBJECT
  • Loading branch information
remils authored Aug 19, 2021
2 parents 9c5ef34 + 4f8fcc6 commit aded9e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Constants/Vat.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ class Vat
const vat0 = 'vat0'; // НДС 0%
const vat10 = 'vat10';// НДС 10%
const vat20 = 'vat20'; // НДС 20%
const vat110 = 'vat110'; // 10/110
const vat120 = 'vat120'; // 20/120
}
4 changes: 2 additions & 2 deletions src/Traits/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private function execute($action, $data = [])

$headers['Content-Type'] = 'application/json';

$data = \json_encode($data, JSON_FORCE_OBJECT);
$data = \json_encode($data);

$client = new Client();
$res = $client->request(
Expand All @@ -51,4 +51,4 @@ private function execute($action, $data = [])
'response' => $response,
];
}
}
}

0 comments on commit aded9e6

Please sign in to comment.