Skip to content

Commit

Permalink
Nullable ImageContext is not always acceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
jordikroon committed Jan 14, 2018
1 parent c8520d1 commit bc960e5
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 bc960e5

Please sign in to comment.