From 759d92ccb41cda720888e3cc2ce73672d2c047c2 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Wed, 13 Feb 2019 11:39:35 +0700 Subject: [PATCH] FIX Ensure Tika responses are casted as strings, fixes broken unit tests They can be returned as a stream, but the TikaRestClient response is documented as a string --- src/Rest/TikaRestClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rest/TikaRestClient.php b/src/Rest/TikaRestClient.php index 2a109a8..1ed762a 100644 --- a/src/Rest/TikaRestClient.php +++ b/src/Rest/TikaRestClient.php @@ -149,7 +149,7 @@ class TikaRestClient extends Client Injector::inst()->get(LoggerInterface::class)->info($msg); } - return $text; + return (string) $text; } /**