We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ec16c6 commit 573934eCopy full SHA for 573934e
1 file changed
src/Http/MindeeApiV2.php
@@ -311,16 +311,16 @@ private function documentEnqueuePost(
311
$postFields['file'] = $inputSource->fileObject;
312
}
313
314
- if ($params->rawText != null) {
+ if (isset($params->rawText)) {
315
$postFields['raw_text'] = strtolower($params->rawText);
316
317
- if ($params->polygon != null) {
+ if (isset($params->polygon)) {
318
$postFields['polygon'] = strtolower($params->polygon);
319
320
- if ($params->confidence != null) {
+ if (isset($params->confidence)) {
321
$postFields['confidence'] = strtolower($params->confidence);
322
323
- if ($params->rag != null) {
+ if (isset($params->rag)) {
324
$postFields['rag'] = strtolower($params->rag);
325
326
0 commit comments