From bc960e5001153ac8cb799aefcf97a7509aab25f7 Mon Sep 17 00:00:00 2001 From: Jordi Kroon Date: Sun, 14 Jan 2018 19:21:57 +0100 Subject: [PATCH] Nullable ImageContext is not always acceptable --- src/Request/VisionRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request/VisionRequest.php b/src/Request/VisionRequest.php index 6418a65..7059722 100644 --- a/src/Request/VisionRequest.php +++ b/src/Request/VisionRequest.php @@ -145,7 +145,7 @@ protected function getPayload() $this->image->getType() => $this->image->getValue(), ], 'features' => $this->getMappedFeatures(), - 'imageContext' => $this->extractImageContext() + 'imageContext' => $this->extractImageContext() ?: null ], ], ];