From 26be26f9e2f7a668e68eb09b8a4d9d425b8f6c70 Mon Sep 17 00:00:00 2001 From: Bozhidar Hristov Date: Tue, 1 Aug 2017 17:59:40 +0300 Subject: [PATCH] Fix __toString --- src/Entity/TranslationToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/TranslationToken.php b/src/Entity/TranslationToken.php index 9b67998..812be41 100644 --- a/src/Entity/TranslationToken.php +++ b/src/Entity/TranslationToken.php @@ -95,6 +95,6 @@ function ($item) use ($Language) { public function __toString() { - return $this->token; + return (string)$this->token; } }