Skip to content

Commit

Permalink
Merge pull request #25 from jordikroon/fix/24-empty-imagecontext
Browse files Browse the repository at this point in the history
Empty ImageContext array is not always acceptable
  • Loading branch information
jordikroon authored Jan 14, 2018
2 parents c8520d1 + bc960e5 commit 7fb4e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request/VisionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ protected function getPayload()
$this->image->getType() => $this->image->getValue(),
],
'features' => $this->getMappedFeatures(),
'imageContext' => $this->extractImageContext()
'imageContext' => $this->extractImageContext() ?: null
],
],
];
Expand Down

0 comments on commit 7fb4e81

Please sign in to comment.