Skip to content

Commit 573934e

Browse files
Update src/Http/MindeeApiV2.php
Co-authored-by: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com>
1 parent 9ec16c6 commit 573934e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Http/MindeeApiV2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,16 @@ private function documentEnqueuePost(
311311
$postFields['file'] = $inputSource->fileObject;
312312
}
313313

314-
if ($params->rawText != null) {
314+
if (isset($params->rawText)) {
315315
$postFields['raw_text'] = strtolower($params->rawText);
316316
}
317-
if ($params->polygon != null) {
317+
if (isset($params->polygon)) {
318318
$postFields['polygon'] = strtolower($params->polygon);
319319
}
320-
if ($params->confidence != null) {
320+
if (isset($params->confidence)) {
321321
$postFields['confidence'] = strtolower($params->confidence);
322322
}
323-
if ($params->rag != null) {
323+
if (isset($params->rag)) {
324324
$postFields['rag'] = strtolower($params->rag);
325325
}
326326

0 commit comments

Comments
 (0)